Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

x++ code to split project invoice proposal amount into two

(0) ShareShare
ReportReport
Posted on by 1,199

Hi,

Greetings!

I want to split project invoice proposal into two entries while posting.

eg. Proposal invoice amount = 1000

A custom table has relevant records, let's say for the above record the amount split is 900, 100

In the invoice journal's voucher transactions, the entries would be for amounts 900 and 100 instead of 1000

This should be achieved using x code. Which could be the best place to do the split, maybe

ProjPost.postTurnover()
?

With best regards,

Abhinay

  • Abhinay Tharwal Profile Picture
    1,199 on at
    RE: x++ code to split project invoice proposal amount into two

    Hi Judy,

    Thank you for your suggestion, I will look into it.

    For now we are going with additional postings in GL to counter the project invoice proposal postings.

    //BR, Abhinay

  • Verified answer
    huijij Profile Picture
    19,811 on at
    RE: x++ code to split project invoice proposal amount into two

    Hi Abhinay:

    You can check his code logic by selecting the split button on the project invoice proposal form and switching to AOT to see if it works.Right click in the blank of the form and click on the form name, it will locate the resource in the AOT.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans