Skip to main content
Question

Link between shipment and invoice?

  • August 14, 2024
  • 8 replies
  • 144 views

Forum|alt.badge.img+3

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.

8 replies

JJäthing
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 139 replies
  • August 14, 2024

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


Buddhika Kurera
Superhero (Employee)
Forum|alt.badge.img+15
  • Superhero (Employee)
  • 388 replies
  • August 15, 2024

@bcardellini AFAIK, there is no standard relationship between these objects, customer order lines, shipments and invoices. Therefore unless you embed these details to your business process, there is no function from the system.


Michael Kaiser
Sidekick (Customer)
Forum|alt.badge.img+8
  • Sidekick (Customer)
  • 98 replies
  • October 7, 2024

@bcardellini I have to agree with Buddihika!
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

 


spetkus27
Do Gooder (Customer)
Forum|alt.badge.img+6
  • Do Gooder (Customer)
  • 25 replies
  • October 7, 2024

@bcardellini If you are in apps 10 there is a reference to the shipment id on the customer invoice screen. 

 

 


KethakaG
Hero (Employee)
Forum|alt.badge.img+11
  • Hero (Employee)
  • 101 replies
  • October 8, 2024

Hi @bcardellini , adding to @spetkus27‘s reply, even in IFS Cloud you can find a reference to the Shipment ID from the Customer Invoice, as shown below.

Regards,
Kethaka


Michael Kaiser
Sidekick (Customer)
Forum|alt.badge.img+8
  • Sidekick (Customer)
  • 98 replies
  • October 10, 2024

Thanks to @spetkus27 we did some research in Views and tables.
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.

:-)

 


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 5 replies
  • October 10, 2024

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! 


spetkus27
Do Gooder (Customer)
Forum|alt.badge.img+6
  • Do Gooder (Customer)
  • 25 replies
  • October 10, 2024

@bcardellini This will work in more situations actually. This picks up collective invoices(which will not populate the shipment field) as well as shipment invoice flow invoices.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings