I have an access program used to create a .csv file used to upload invoicing to a customer (like EDI but not standard, the Purchase Order's (PO) are not sent electronically)
The problem that I have encountered is that there are items called "KIT" items that the customer orders as a single part number but the ERP system adds lines in the sales order for the components of the 'parent' item. The .csv file needs to reference the original PO line number.
I would like to re_number the sales order lines in a query eliminating the components for the order.
So the tbl_sales has records
SO_no Line_no Comp_Item
12345 1 N
12345 2 N
12345 3 Y
12345 4 Y
12345 5 N
Hopefully the Query would return
SO_no Line_no Comp_Item PO_Line
12345 1 N 1
12345 2 N 2
12345 5 N 3
I need to keep the Original Sales order Line to then link it to the Invoice.
Any suggestions would be great!
Our back up plan is to add a field at order entry to record the PO line but since this is only used for some of the customers that would be extra (useless) work for the order entry process.
Thanks so much!
The problem that I have encountered is that there are items called "KIT" items that the customer orders as a single part number but the ERP system adds lines in the sales order for the components of the 'parent' item. The .csv file needs to reference the original PO line number.
I would like to re_number the sales order lines in a query eliminating the components for the order.
So the tbl_sales has records
SO_no Line_no Comp_Item
12345 1 N
12345 2 N
12345 3 Y
12345 4 Y
12345 5 N
Hopefully the Query would return
SO_no Line_no Comp_Item PO_Line
12345 1 N 1
12345 2 N 2
12345 5 N 3
I need to keep the Original Sales order Line to then link it to the Invoice.
Any suggestions would be great!
Our back up plan is to add a field at order entry to record the PO line but since this is only used for some of the customers that would be extra (useless) work for the order entry process.
Thanks so much!