0

Match quantity on Sales Invoice Line to Purch. Invoice Line

Hello Everyone.

Thanks for your time.

Last two days I am pushing my Jet Reports knowledge and imagination to the limits but still can't accomplish what I am trying to do. My feeling is that it is possible but not sure how. Can you help?

The report is for company that mostly does drop shipping. So they nave matching Sales Invoices (say, Item A, 2kg) and Purchase Invoices (Item A, 2kg). The "connecting" link between Sales and Purchase Invoices is the PO number that is present on both.

The report I built (enclosed) lists those AP invoices, where related AR invoices have been paid in full but the AP invoice hasn't. Everything works fine if the PO number is not shared between two Sales Invoices and two Purchase Invoices. The problem is that sometimes the PO is created but several Sales and Purchase Invoices are created based on that. in that case the PO number is shared and report gives wrong results.

I want to bring "Quantity" to equation, but not sure how. My report lists invoices from Sales and Purchase Invoice Header tables, and I need somehow to filter the results based on Invoice Line Tables and match the quantities. To make it clearer, here is an example:

PO # is 55 and has only one related Sales and Purchase Invoice. My report will scan the Sales Invoice Header to find if the Sales Invoice with PO 55 has "Remaining amount = 0" and search if corresponding Purchase Invoice is still unpaid (Vendor Ledger Entry, Open=TRUE)

But if PO # 55 has more than one related Sales and Purchase invoices, my report doesn't work. That is why I also want to match quantities, because quantities will be unique to each Sales/Purchase Invoice pairs, even though they share the same PO#.

Please let me know if you need more details. Thank you!

3 comments

Please sign in to leave a comment.