web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Settle Customer transaction/invoice partially using X++

(0) ShareShare
ReportReport
Posted on by 48,843 User Group Leader

for customer payment journal, I have developed done some customization, where I settle Customer Invoice with payment/journal Line using x++ code.

I know under normal situation we don't need to write x++ for that as user can click settlement button under functions of payment journal lines, and can settle any invoice fully or partially.

But for some reasons we have written code to settle invoice with payment lines, in one of our customized form.

as I settle an invoice with a payment line, it settles whole invoice amount, whereas what we are looking for that user may want to settle an invoice partially.

e.g. invoice amount is 100 and customer want to pay 70. now I need to settle 70 with invoice. settlement is working fine only point is how I can make it a partial settlement using x++

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Sohaib Cheema Profile Picture
    48,843 User Group Leader on at
    RE: Settle Customer transaction/invoice partially using X++

    done. just need to call updateSettleAmount for TransManager and specify needed amount during call

  • Community Member Profile Picture
    on at
    RE: Settle Customer transaction/invoice partially using X++

    Hi sohaib,

    can you please share the code for partial settlement.

    Thanks in advance

  • Sohaib Cheema Profile Picture
    48,843 User Group Leader on at
    RE: Settle Customer transaction/invoice partially using X++

    Hi raja,

    unfortunately I don't have  access to the client where we did this customization. I will try if I can get exact code.

    Meanwhile let me tell you; you have to use SpecTransManager(Class) and you have to make use of method updateSettleAmount to specify partial amount. If you will google you can find many examples of its usage.

    If you have done some work on it, do share with me, your issues, so we may help you to fix those

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Settle Customer transaction/invoice partially using X++

    can u please share code for that?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#1
Community Member Profile Picture

Community Member 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans