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

Receivable report based on Sale Order

Hi Guys,

We are using SAP Business One 8.82 PL 10, Management wants to see a Receivable report based on Sale Order in which A/R Down Payment Request and its Incoming Payment, A/R Invoice (Partial or complete) and its Incoming Payment, A/R Credit Memo if any posted. We are using both Item and Service type Sale Order and A/R Invoices. We can see relationship map for each Sale Order but not complete report based on dates.

Irfan Yousaf

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 03, 2013 at 07:02 AM

    Hi Irfan,

    Try this and let me know the result:

    SELECT [CustName] as CustName, isnull([1],0) as Jan, isnull([2],0) as Feb, [3] as Mar, isnull([4],0) as Apr, isnull([5],0) as May, isnull([6],0) as june, isnull([7],0) as July, isnull([8],0) as Aug, isnull([9],0) as Sept, isnull([10],0) as Oct, isnull([11],0) as Nov, isnull([12],0) as Dec


    from
    (SELECT T0.[CardName] as CustName, sum(T0.[DocTotal]) as Total, month(T0.[DocDate]) as month FROM OINV T0 WHERE year(T0.[DocDate]) = 2013 and T0.[CardCode] = 'ADD YOUR CARDCODE HERE' and T0.[DocStatus] ='o' GROUP BY T0.[CardName],T0.[DocDate]

    union all
    (SELECT T0.[CardName] as CustName, -sum(T0.[DocTotal]) as Total, month(T0.[DocDate]) as month FROM ORIN T0 WHERE year(T0.[DocDate]) = 2013 and T0.[CardCode] = 'ADD YOUR CARD HERE' and T0.[DocStatus] ='o' GROUP BY T0.[CardName],T0.[DocDate])) S

    Pivot
    (sum(S.total) For Month IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])) P

    Hope helpful.

    Thanks & Regards,

    Nagarajan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Naga,

      Query showing result of Monthly report. I want to see report Sale Order like which Sale Order invoice has done or partially done same which invoice payment has received and how much payment against opened invoices..

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.