Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Class and method for insert data to vendtrans when posting invoice

Posted on by 35

Hi Masters,

I have a problem to find the class and its method that used to write data into VendTrans table when posting vendor invoice.

Especially, i need to fine the line that assign data to be inserted in VendTrans.Txt. Any help would be appreciated, thank you :)

*This post is locked for comments

  • Rafael Araujo Profile Picture
    Rafael Araujo 170 on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hi Nikolaos,

    I don't need more. I found the solution using the default description (Purchase order - invoice, ledger).

    Thanks :)

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hi Rafael,

    did you read the messages above? If yes, I don't understand what is unclear. Could you let us know what question / problem you have? 

  • Rafael Araujo Profile Picture
    Rafael Araujo 170 on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hi Willy,

    How did you do it?

    Thanks!

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hi Willy,

    I'm glad to help you.Thanks.

  • Willy Andrian Profile Picture
    Willy Andrian 35 on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hello Andre, yes you're right about that. Recently my team told me how to do it :) Thank you for your reply

  • Willy Andrian Profile Picture
    Willy Andrian 35 on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hello Wang, thank you for your reply. You pointed it directly to the line. Thank you for the clean answer :)

  • Willy Andrian Profile Picture
    Willy Andrian 35 on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hey Guru, thank you for your reply. It's very helpful :)

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hi Willy,

    You can see it in Class CustVendVoucher ,post() method.
    The vaule of VendTrans.Txt was given in the line 2538.
    You can see logic of transTxtfindDefaultTextForPayment.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,253 Super User 2024 Season 2 on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hi Willy,

    If you have the cross references updated, you can find which methods are using the table and/or are using the insert method.

    You can also use the trace parser or debugger.

  • Verified answer
    Guruprasanna Profile Picture
    Guruprasanna 1,048 on at
    RE: Class and method for insert data to vendtrans when posting invoice

    Hi Willy,

    Common map 'CustVendTrans' will be used for both custTrans and VendTrans data to fill up during posting. 'Post' method in 'CustVendVoucher' class is used to assign text. Please find the below screen shot. I have checked this in D365 during AP invoice journal posting, might be same in 2012 also.

    8562.Capture.PNG

    Hope this might help you!

    Regards

    Guru

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans