Incorrect data in the reports on the View Order screen
I noticed an issue with the PDF and CSV report on the "View Orders" screen when I was testing OLMIS-4943.
In the PDF one, the ordered quantity value doesn't match with the value that was entered in the "Fill Quantity" field when fulfilling the order. Also, the report contains also the products for which it was 0. As for the CSV one, the ordered values also don't match but unfortunately, even the products differ between the report and what was fulfilled. This didn't use to work like that - the data between the "View Shipment" screen and both reports on the "View Orders" page used to match. The issue occurs on both browsers, and no errors are returned on the UI or in the console.
Submit a regular requisition as vsrmanager1.
Approve the requisition as divo1.
Fulfill the order and confirm its shipment.
Go to Orders > View Orders.
Generate the PDF report concerning the just-shipped order.
The "Ordered Quantity" and "Dispensing Units" values are not the same as on the shipment view. Also, products which weren't shipped (for which the "Fill Quantity" was 0) are included in the report.
Return to the "View Orders" screen and generate the CSV report concerning the just-shipped order.
The "Ordered quantity" doesn't match the "Fill Quantity" values from the shipment view. Also, the products don't match.
The data in the PDF and CSV reports on the "View Orders" screen should match those entered on the shipment view.
This is definitely a bug. I don't understand why it was changed to task. I'll change it again.
is this a task or a bug?
This has been updated as a task, as discussed, the test case for view orders. I was not able to produce a bug, and the shipment view matches what was fulfilled.
While checking OLMIS-3044, the same bug appears: in reports from View Orders other values appear than those that were listed as "Approved Quantity" in Convert to Order.
I noticed that products with codes C100, C200 each time in "Ordered Quantity" have the value 1 regardless of the value entered in "Approved Quantity".