web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Invoice listing

(0) ShareShare
ReportReport
Posted on by

Can someone describe how to create a list of invoices with the following columns: invoice number, invoice date, customer name, customer number, invoice amount, paid amount, void amount, pending amount? I have been trying to use a smartlist and a trial balance. Also, we have two types of customers, employers and subscribers. I am looking for employers.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Tom Cruse Profile Picture
    1,477 on at

    If you have access to sql I would create a view and then create a smartlist off that view or even a refreshable spreadsheet, that's what we use all the time. Victoria Yudin also has a bunch of great views for receivables. Gotta give a shout out to an excellent MVP and one who a wonderful straightforward website too :) 

    http://victoriayudin.com

    Here's a simple view we use to show all outstanding customer documents, whether they be invoices, payments, miscellaneous credit memos or debit memos. It lists out the customer along with the document, it shows the original amount of the document and the remaining balance. I reversed the signs on payments and credit memos so they stood out. It also shows old the document is so you know how long its been sitting around. Pretty helpful.

    Let me know if you need anything else added. I added customer class at the bottom of the where clause and hopefully I called your employer class correctly, if I misspelled or if you want you can completely omit that part out and then filter the smartlist for the different customer classes.

    select top 100000

    r1.CUSTNMBR as CustomerNumber, m.CUSTNAME as CustomerName, m.custclas as Class, r1.DOCNUMBR as DocNumber,

    case r1.RMDTYPAL

    when '1' then 'Invoice'

    when '2' then 'Reserved for scheduled payments'

    when '3' then 'Debit Memo'

    when '4' then 'Finance Charge'

    when '5' then 'Service / Repair'

    when '6' then 'Warranty'

    when '7' then 'Credit Memo'

    when '8' then 'Return'

    when '9' then 'Payment'

    end as 'DocType',

    case

    when r1.RMDTYPAL = 9 then DATEDIFF(day,r1.DOCDATE,GETDATE())

    when DATEDIFF(day,r1.duedate,GETDATE()) >= 0 then DATEDIFF(day,r1.duedate,GETDATE())

    when DATEDIFF(day,r1.duedate,GETDATE()) <= 0 then 0

    end as 'DaysOutstanding',

    case

    when r1.RMDTYPAL in (9,8,7) then r1.ORTRXAMT *-1

    else r1.ORTRXAMT

    end as Original_Amount,

    case

    when r1.RMDTYPAL in (9,8,7) then r1.CURTRXAM *-1

    else r1.CURTRXAM

    end as Remaining_balance,

    r1.DOCDATE as DocDate,

    r1.duedate as DocDueDate

    From RM20101 r1

    left join RM00101 m on m.CUSTNMBR = r1.CUSTNMBR

    where r1.CURTRXAM != 0

    and CUSTCLAS = 'Employers'

    group by r1.DOCNUMBR, r1.CUSTNMBR, m.CUSTNAME, m.CUSTCLAS, r1.RMDTYPAL, r1.DOCDATE, r1.DUEDATE, r1.ORTRXAMT, r1.CURTRXAM

    order by r1.CUSTNMBR desc , r1.DOCDATE asc

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans