metafresh logo and link to homepage

IT gh#527

#527 MRP Product Info not correct after VO RC CL

Testcase to check if MRP Product Info is updated correctly after using docactions VO, RC & CL.

  1. Create a sales order for G000X, complete it:
  2. Check MRP Product Info for the 2 products:

    Product Zusagbar Zählbestand Reservierte Menge
    P0001 -10 10
    P0002 -5 5
  3. Reverse the sales order (RC, Storno), and check the MRP Product Info after refresh:
  4. Create another sales order, with the same products and qties, check MEP Product Info:

    Product Zusagbar Zählbestand Reservierte Menge
    P0001 -10 10
    P0002 -5 5
  5. Void the sales order (VO, Löschen), and check the MRP Product Info after refresh:
  6. Create another sales order, with the same products and qties, check MEP Product Info:

    Product Zusagbar Zählbestand Reservierte Menge
    P0001 -10 10
    P0002 -5 5
  7. Close the sales order (CL, Schliessen), and check the MRP Product Info after refresh:
  8. Create another sales order, with the same products and qties, check MEP Product Info:

    Product Zusagbar Zählbestand Reservierte Menge
    P0001 -10 10
    P0002 -5 5
  9. Create an inout with Lieferdispo, Auswahl liefern, don’t complete it yet, and check the MRP Product Info after refresh:
  10. In the inouts, set qty for P0001 to 5 and for P0002 to 2, then complete it and check the MRP Product Info after refresh:

    Product Zählbestand Zusagbar Zählbestand Reservierte Menge
    P0001 -5 -10 5
    P0002 -2 -5 3
  11. Reverse the inout (RC, Storno), and check the MRP Product Info after refresh:

    Product Zusagbar Zählbestand Reservierte Menge
    P0001 -10 10
    P0002 -5 5
  12. Create another partial inout, same qties, and check the MRP Product Info after refresh:

    Product Zählbestand Zusagbar Zählbestand Reservierte Menge
    P0001 -5 -10 5
    P0002 -2 -5 3
  13. Void the inout (VO, Löschen), and check the MRP Product Info after refresh:

    Product Zusagbar Zählbestand Reservierte Menge
    P0001 -10 10
    P0002 -5 5
  14. Create another partial inout, same qties, and check the MRP Product Info after refresh:

    Product Zählbestand Zusagbar Zählbestand Reservierte Menge
    P0001 -5 -10 5
    P0002 -2 -5 3
  15. Close the inout (CL, Schliessen), and check the MRP Product Info after refresh:

    Product Zählbestand Zusagbar Zählbestand Reservierte Menge
    P0001 -5 -10 5
    P0002 -2 -5 3
  16. Create a purchase order for G000X, complete it:
  17. Check MRP Product Info for the 2 products:

    Product Zusagbar Zählbestand Bestellte Menge
    P0001 10 10
    P0002 5 5
  18. Reverse the order (RC, Storno), and check the MRP Product Info after refresh:
  19. Create another purchase order, with the same products and qties, check MEP Product Info:

    Product Zusagbar Zählbestand Bestellte Menge
    P0001 10 10
    P0002 5 5
  20. Void the order (VO, Löschen), and check the MRP Product Info after refresh:
  21. Create another purchase order, with the same products and qties, check MEP Product Info:

    Product Zusagbar Zählbestand Bestellte Menge
    P0001 10 10
    P0002 5 5
  22. Close the order (CL, Schliessen), and check the MRP Product Info after refresh:
  23. Create another purchase order, with the same products and qties, check MEP Product Info:

    Product Zusagbar Zählbestand Bestellte Menge
    P0001 10 10
    P0002 5 5
  24. In Wareneingang POS, create receipts:
  25. Check the MRP Product Info after refresh:

    Product Zählbestand Zusagbar Zählbestand Bestellte Menge
    P0001 8 10 2
    P0002 4 5 1
  26. Reverse the receipt (RC, Storno), and check the MRP Product Info after refresh (try BOTH in Wareneingang window and with Korrektur in Wareneingang POS, result must be the same!):

    Product Zusagbar Zählbestand Bestellte Menge
    P0001 10 10
    P0002 5 5
  27. Create receipts like before, in Wareneingang POS, and check the MRP Product Info after refresh:

    Product Zählbestand Zusagbar Zählbestand Bestellte Menge
    P0001 8 10 2
    P0002 4 5 1
  28. Void the receipt (VO, Löschen), and check the MRP Product Info after refresh:

    Product Zusagbar Zählbestand Bestellte Menge
    P0001 10 10
    P0002 5 5
  29. Create receipts like before, in Wareneingang POS, and check the MRP Product Info after refresh:

    Product Zählbestand Zusagbar Zählbestand Bestellte Menge
    P0001 8 10 2
    P0002 4 5 1
  30. Close the receipt (CL, Schliessen), and check the MRP Product Info after refresh:

    Product Zählbestand Zusagbar Zählbestand Bestellte Menge
    P0001 8 10 2
    P0002 4 5 1

Zur Quelldatei auf github.com