#986 Handle the case that PO can’t load a record
Testcase to check if the handler will un-archive a record and the PO retries to load it, without throwing errors or exceptions.
-
Have a purchase order sales order for G000X, for P0001, and the corresponding invoice candidates
-
Open Extra, Settings
-
Change the DLM-Level at the bottom to “nur Produktiv”
-
Select the invoice candidate, and use zoom into to get to the corresponding order
-
Note the C_Order_ID of this order
-
Close the order, and in pgAdmin, do UPDATE C_Order SET DLM_Level=3 –(=archived) where C_Order_ID=your order ID;
- Then check the DLM-Level with SELECT DLM_Level FROM C_ORDER where C_Order_ID=your order ID;:
- Go back to your IC, and zoom into your order again
- => the order is displayed without errors or anything
- In pgAdmin, check the DLM-Level again with SELECT DLM_Level FROM C_Order where C_Order_ID=your order ID;:
- => now Level 1
- => the System has taken back the order with Level 3, = archived, on-the-fly, without errors
- Repeat the test, but leave the DLM-Level in Settings on “Produktivdaten und archivierte Daten”:
- => Selects in pgAdmin show always Level 3, since the DLM-Level didn’t change and the archived data is included as well
View source file on GitHub.com