If I have two shipments for the same customer order line, with separate invoices, is there a way to tell which invoice is for which shipment? I’m looking for an ID field or a database key I can always use to find the right invoice for a particular shipment line.
On receipt of goods there is a “Receipt Reference” field into which you can enter the consignment note ID of the delivery, If you can make the supplier enter the same consignment note ID on to the invoices then you can set the Invoice Matching parameter to match by Receipt Reference.
/Jonas
I did a check on our BI solution which combines CIL (joined to COL), combined with shipments.
I don’t want to go too deep into details but state the following:
You can have ShipmentIDsConcat in the COL
We see in this example the corresponding 2 invoices:
In a “master” FACT_Sales we join CIL “back” to COL and you can see ShipmentIDs there as well.
So at least you will see the original CO and the corresponding ShipmentIDs on the ivoice side.
Hope that brings you to new ideas.
All the best
Michael
Hi
Regards,
Kethaka
Thanks to
Follow the white rabit! (upps sorry, wrong movie)
Follow CUST_ORDER_INV_HEAD_UIV_ALL to
CUST_INVOICE_PUB_UTIL_HEAD_ALL
Look for field N3 in the INVOICE_TAB.
You will find the shipment_id.
:-)
After more report development I realized I needed a way to identify the right shipment for a particular invoice line, not the other way around. I was told an invoice can be for multiple shipments, so I guess I need to do this at the line level. I believe I have a solution in place using customer order deliveries
invoice i
join invoice_item ii on ii.invoice_id = i.invoice_id
join cust_delivery_inv_ref cdir on cdir.invoice_id = i.invoice_id and cdir.item_id = ii.item_id
join customer_order_delivery cod on cod.deliv_no = cdir.deliv_no
join shipment s on s.shipment_id = cod.shipment_id
join customer_order_line col on col.order_no = cod.order_no and col.line_no = cod.line_no and col.rel_no = cod.rel_no and col.line_item_no = cod.line_item_no
join customer_order co ON co.order_no = col.order_no
Thanks all for the assistance!
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.