Here's what I'm trying to do:
Two Tables:
Sales Order Header - with basic top-level info re. the sales order - customer, date, sales order number, and total freight for the order.
Sales Order Line - with the individual line by line info regarding what was sold, including whether or not this line item is taxable. Note: freight is not recorded at the line level, only at the header level.
The header and line tables are linked via a unique sales order number.
I want a total that sums the line items sold plus the freight for the total order.
My issue is this. The line items are grouped first by taxable / not taxable then by sales order number. So one sales order may appear in multiple groups on the report.
If I do a running total that totals freight on each change of sales order number, freight will be added in more than once for the sales order that is split among groups.
What can I do to get freight included only once?
Thanks in advance for your help.
Sherry Whitten
swhitten@idrivellc.com
Two Tables:
Sales Order Header - with basic top-level info re. the sales order - customer, date, sales order number, and total freight for the order.
Sales Order Line - with the individual line by line info regarding what was sold, including whether or not this line item is taxable. Note: freight is not recorded at the line level, only at the header level.
The header and line tables are linked via a unique sales order number.
I want a total that sums the line items sold plus the freight for the total order.
My issue is this. The line items are grouped first by taxable / not taxable then by sales order number. So one sales order may appear in multiple groups on the report.
If I do a running total that totals freight on each change of sales order number, freight will be added in more than once for the sales order that is split among groups.
What can I do to get freight included only once?
Thanks in advance for your help.
Sherry Whitten
swhitten@idrivellc.com