L
Leah
I am stuck with writing this query and need some
help....It is pulling together a master list of all
customers, orders, pmts and outstanding balances for my
accounting dept. Problem is with orders that have
multiple line items. It doesn't apply the payments
correctly and when I pull the query, it shows a credit on
one and a balance on the other. So, I have figured out
that I need to write an expression that will sum the
invoiced amount (quantity*price)+(freight), then sum the
payments, then subtract the sum of the payments from the
sum of the invoiced amount.
Does this make sense and can someone tell me how to write
this expression? When I try I get some error about not
having the customer ID in the aggregate function.
Thanks!
Leah
help....It is pulling together a master list of all
customers, orders, pmts and outstanding balances for my
accounting dept. Problem is with orders that have
multiple line items. It doesn't apply the payments
correctly and when I pull the query, it shows a credit on
one and a balance on the other. So, I have figured out
that I need to write an expression that will sum the
invoiced amount (quantity*price)+(freight), then sum the
payments, then subtract the sum of the payments from the
sum of the invoiced amount.
Does this make sense and can someone tell me how to write
this expression? When I try I get some error about not
having the customer ID in the aggregate function.
Thanks!
Leah