Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Billing Invoice values in project accounting

(0) ShareShare
ReportReport
Posted on by 606

Hi all,

I have a requirement to get the payment billing and its status from project accounting Module. I have taken the billing document status. But it is showing 1,2,3 like number. I want to show what 1 ,2,3 represents. can anyone share what those invoice document status values represent?

Regards,

Arun

*This post is locked for comments

  • Suggested answer
    RE: Billing Invoice values in project accounting

    To finish the answer that Babu started, using the CASE statement in the SQL Query will get the 'words' to show up rather than the numbers.

    So you will need to use something along the following lines to replace 1,2,3 in the values.

    CASE C.DCSTATUS  WHEN 1 THEN 'WORK' WHEN 2 THEN 'OPEN'

    WHEN 3 THEN 'HISOTRY' ELSE 'UNKNOWN' END

    Hope this helps.

  • Suggested answer
    RE: Billing Invoice values in project accounting

    The PA billing status can be 3 of the following.

    1) Work

    2) Open

    3) History

    So your DOCSTATUS should be either of this, please check some random transaction within GP so you will know the correct status.

  • Arunsh Profile Picture
    Arunsh 606 on at
    RE: Billing Invoice values in project accounting

    SELECT

    A.PAPROJNUMBER,

    A.PADOCNUMBER20 AS 'BILLING NUMBER',

    B.DOCNUMBR AS 'INVOICE NUMBER',

    B.DOCDATE AS 'DOCUMENT DATE',

    C.DCSTATUS AS 'INVOICE STATUS'

    FROM

    PA13200 AS A

    INNER JOIN PA23000 AS B

    ON A.PAPROJNUMBER = B.PAPROJNUMBER

    INNER JOIN PA05100 AS C ON A.PAPROJNUMBER = C.PAPROJNUMBER

    WHERE A.PAPROJNUMBER = ' '

    This is the actual query im using.. i just need what that invoice status means...could you help me.. im passng the project number and pulling the invoice status of that project.

    this is only from open table..

  • Arunsh Profile Picture
    Arunsh 606 on at
    RE: Billing Invoice values in project accounting

    SELECT

    A.PAPROJNUMBER,

    A.PADOCNUMBER20 AS 'BILLING NUMBER',

    B.DOCNUMBR AS 'INVOICE NUMBER',

    B.DOCDATE AS 'DOCUMENT DATE',

    C.DCSTATUS AS 'INVOICE STATUS'

    FROM

    PA13200 AS A

    INNER JOIN PA23000 AS B

    ON A.PAPROJNUMBER = B.PAPROJNUMBER

    INNER JOIN PA05100 AS C ON A.PAPROJNUMBER = C.PAPROJNUMBER

    WHERE A.PAPROJNUMBER = ' '

    This is the actual query im using.. i just need what that invoice status means...could you help me..

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Billing Invoice values in project accounting

    Arun, you may need to do sql join couple of PA Tables.  The table details can be found in GP SDK.  Hope this help.

  • RE: Billing Invoice values in project accounting

    Arun,

    What table you are using for payment billing in PA.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans