Line items from sales orders that get deleted disappear from the sales_order.items database and get placed in a sales_order.cancelled_items database.
If its a missing line in items it will be in cancelled.
The two db's are tied together by the sales_order.header db.
I need a report that can list all line items of a sales order in order, some appearing in the items db and some appearing in the cancelled items db.
SO.Items:
SO number line_no part number
40009 1 p1
40009 3 p2
40009 5 p3
SO.Cancelled:
40009 2 p4
40009 4 p5
I want to end up with a list of the (original before cancellations) sales order - with a note to show which are cancelled lines:
cancelled?
40009 1 p1 n
40009 2 p4 y
40009 3 p2 n
40009 4 p5 y
40009 5 p3 n
Sometimes line item no 1 can be a cancelled item, there can be a number of consecutive lines that get cancelled.
Any suggestions please.
If its a missing line in items it will be in cancelled.
The two db's are tied together by the sales_order.header db.
I need a report that can list all line items of a sales order in order, some appearing in the items db and some appearing in the cancelled items db.
SO.Items:
SO number line_no part number
40009 1 p1
40009 3 p2
40009 5 p3
SO.Cancelled:
40009 2 p4
40009 4 p5
I want to end up with a list of the (original before cancellations) sales order - with a note to show which are cancelled lines:
cancelled?
40009 1 p1 n
40009 2 p4 y
40009 3 p2 n
40009 4 p5 y
40009 5 p3 n
Sometimes line item no 1 can be a cancelled item, there can be a number of consecutive lines that get cancelled.
Any suggestions please.