Skip to Content
author's profile photo Former Member
Former Member

Aged Debtors Report by Account Manager (Sales person)

Hi experts

I've created the following SQL Query to identify the ageing of balance outstanding on Open Sales Invoices. I'd like to include Credit Notes but do not have the expertise. Hope someone can help?

Thanks in advance

Derek

SELECT T1.[CardCode] AS 'Cust Code', T1.[CardName] AS 'Customer', T1.[DocNum] AS 'Inv No', T1.[TaxDate] AS 'Doc Date', T1.[DocDueDate] AS 'Doc Due Date', T1.[DocCur] AS 'FX', T1.[DocTotalFC] AS 'Doc Total FX', T1.[DocTotal] AS 'Doc Total u20AC',T1.[DocTotal] - T1.[PaidSum] AS 'Bal Due u20AC', T0.[SlpName] AS 'AC Mgr',DATEDIFF(day,T1.DocDueDate,getdate()) AS 'Days Overdue' FROM OSLP T0 INNER JOIN OINV T1 ON T0.SlpCode = T1.SlpCode WHERE T1.[DocStatus] ='O'

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2011 at 08:25 AM

    If you are on 8.8, this is a standard report?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.