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)

GP Project Billing Invoice Create C#

(0) ShareShare
ReportReport
Posted on by 745

Hi All ,

I m trying to create a Billing Invoice for  Project(entity) 

using console Application i tried with SQL queries but cant see that entry in billings tab below are the tables i tried to insert data in

INSERT INTO PA13100 (PABILLTRXT,PADocnumber20,BACHNUMB, BCHSOURC,PAuserid,CUSTNMBR,PRBTADCD, PACOMM,CURNCYID,MISCTXBL,FRGTTXBL,CURRNIDX,PAPostoDynRM)

VALUES (1,'BILL0000000000006','B1','PA_BL','sa',1,'123456','test profiler','Z-US$',3,3,1007,1);


INSERT INTO PA01901 (PATranType,CUSTNMBR,PADOCDT,PACOSTOWNER,RMDTYPAL,PABILLTRXT,PADocnumber20,DCSTATUS)
VALUES (7,1,'2017-04-12 00:00:00.000',1,1,1,'BILL0000000000006',1);

INSERT INTO RM00401 (DOCNUMBR,BCHSOURC,CUSTNMBR,CHEKNMBR,DCSTATUS,RMDTYPAL,DOCDATE)
VALUES ('BILL0000000000006','PA_BL',1,'BILL0000000000006',0,1,'2017-04-12 00:00:00.000');

Also which tables which field data will insert the invoice for that particular project 

As shown in image Billing-Invoics.png

Any econnect claass or code that could do that will be very helpful

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    26P2ER Profile Picture
    1,775 on at

    Hello Moin:

    I recommend

    1. You enable dexsql log by adding 2 lines in your dex.ini found in the GP Install folder. See Leslie's post http://dynamicsconfessions.blogspot.com/2014/02/dexini-switches-my-complete-list.html for a complete list of all Dex.ini switches.
    2. Launch GP client in a QA instance. Delete the dexsql.log created just right before you open the Billing Invoice window.
    3. Add a sample billing invoice close and save.
    4. Navigate to dexsql log file and rename it.
    5. Close out GP and reset dex.ini flags to false so as to disable SQL log tracing.

    The renamed dexsql log will give you all the SQL you need that can later on be added in your code.

    Best

  • MMK Profile Picture
    745 on at

    Hi Ven

    Thanks i will try this and update

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
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans