Incorrect validation of the pricePerPack field in PUT orderables/id endpoint
While checking OLMIS-6413, I noticed that negative values can be entered in the "pricePerPack" field using PUT api/orderables/id endpoint.
Then the total requisition coast also shows the minus values.
Log into the application as an administrator and obtain the user's access token.
Update any orderable with the use of the PUT api/orderables/id endpoint so that the pricePerPack value is, e.g. -10.
Go to Requisition > Create/Authorize and inititate a new requisition.
Fill in the required fields for just-updated product.
The minus values occurs in the Price Per Pack and Toal requisition cost fields.
This field shouldn't accept negative values.
I tried a PUT /api/orderables/id using the request body in the description and got the correct error. Moving to Done.
Hi ! I moved this ticket to In Progress because there were some issues with Sonar. I am asking you to look at it first.
The issue is still valid.
Reviewed. This issue is still valid.
Please check if this issue is still valid.