Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / x++ code to split proj...
Finance forum
Answered

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

Posted on by 1,104

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
    Abhinay Tharwal 1,104 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
    huijij 19,803 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans