> I am trying to write a sql query that will return a list of open sales
> invoices and include what the invoice amount is and how much is remaining. I
You should use the table "Customer Ledger Entry" instead. This table has a
field "Remaining Amount" which tells you the amount which needs to be payed.
A posted Sales Invoice results in one record in the Customer Ledger Entry
table.
Use the field "Document Type" to filter out only Invoices.
Luc Van Dyck
webmaster http://mibuso.com
"Your favourite knowledge base"
why don't You use report 106?
Volker
> "Jason" wrote:
>
> > I am trying to write a sql query that will return a list of open sales
> > invoices and include what the invoice amount is and how much is remaining. I
>
> You should use the table "Customer Ledger Entry" instead. This table has a
> field "Remaining Amount" which tells you the amount which needs to be payed.
> A posted Sales Invoice results in one record in the Customer Ledger Entry
> table.
>
> Use the field "Document Type" to filter out only Invoices.
>
Thanks. Just what I was looking for.
in this case You could also trace the SQL-queries when running a report from
NAV.
Volker