metafresh logo and link to homepage

IT gh#791

#791 Create Nachbelastung from Invoice Cast exception

Testcase to check if Nachbelastung works fine without throwing exceptions

  1. Create 2 sales invoices for G000X (manually or from order and inout):
  2. In the 1st invoice, click Nachbelastung:
  3. Select Nachbelastung Mengendifferenz, OK
  4. Delete one of the invoice lines, and change the qty of TUs in the other invoice line; save & complete

  5. Print the jasper:
  6. Check your original 1st invoice:
  7. In the 2nd invoice, click Nachbelastung:
  8. Select Nachbelastung Preisdifferenz, OK
  9. Delete one of the invoice lines, and change the price in the other invoice line; save & complete

  10. Print the jasper:
  11. Check your original 2nd invoice:
  12. If you like, you can reverse / delete one of your Nachbelastungen again, and check the original invoice once more:

Zur Quelldatei auf github.com