metafresh logo and link to homepage

IT FRESH-837

#552 division by 0 in costprice report

Testcase to check if the bug regarding division by 0 in costprice report is fixed.

  1. Run the costprice report, leave it open for comparison:
  2. Make sure TU A and TU B have a price set in the PLV used in costprice report (Lagerwert):
  3. Create a purchase order for G000X:
  4. Create receipts in Wareneingang POS:
  5. Run the costprice report:
  6. Create a report for empties:
  7. Run the costprice report for TU A:
  8. Create another purchase order for G000X:
  9. Create receipts in Wareneingang POS:
  10. Run the costprice report once more:

Note: the original bug happened when the qties of 1 HU type was +x qty in one warehouse and -x qty in another, so you need to test with the same qty from Wareneinang (+, in warehouse for Wareneingang) and the same qty from empties report (-, in warehouse for empties)!


Zur Quelldatei auf github.com