Hello, is there a way to prevent duplicated quantities and amounts for items that are shipped and invoiced multiple times? This is for a single sales order that is invoiced multiple times due to split deliveries.

Hello, is there a way to prevent duplicated quantities and amounts for items that are shipped and invoiced multiple times? This is for a single sales order that is invoiced multiple times due to split deliveries.

Best answer by nhatnghetinh
Hi
I see that your GI correctly displays the data for the lines on the Invoice (ARTran). The SO Qty and SO Amount lines are correctly repeated from the original SO. However, you are using SUM to sum the SO Qty and SO Amount lines, which doesn't display the desired data.
Try joining with SOShipline and adding the column SOShipline.ShippedQty and creating a function SUM(SOShipline.ShippedQty) to replace SUM(SOline.OrderQty). Then the SO Qty column will be the quantity of the original SO used for reference.
The SO Amount column is handled similarly to the SO Qty column.
Best Regards,
NNT
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.