Skip to main content

Notifications

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
    Bill Campbell Profile Picture
    12 on at
    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
    babubaskaran@outlook.com Profile Picture
    10 on at
    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
    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
    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
    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.

  • babubaskaran@outlook.com Profile Picture
    10 on at
    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans