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 :
Finance | Project Operations, Human Resources, ...
Answered

PurchInvoiceJournalPost > PostLine method in ax 2012 r3

(0) ShareShare
ReportReport
Posted on by 30

Hi all,

Can you please let me know, in class PurchInvoiceJournalPost , postLine method i am not able to get any code. Even i debugged also with uncheck "Execute business operation in CIL".

postLine.jpg

Please let me know where i am geeting the business logic for postLine method? Even i not found also this.JournalizeSourceDocument method

Please give me more shed on this.

Thanks!

I have the same question (0)
  • Verified answer
    Hossein.K Profile Picture
    6,648 on at

    Hi @rp@n,

    the PurchInvoiceJournalPost is extended from class FormletterJournalPost and in this class there is a method Post() that It does post journal.

  • @rp@n Profile Picture
    30 on at

    Thanks Hossein,

    With this FormletterJournalPost > post method, is invoice journal is created ?

    I mean, if I wants to add any code and that I wants to execute before creation of Invoice Journal of PO. Shall I write code in post method?

    Please confirm the same.

    Please give me more shed on this.

    thanks!

  • Suggested answer
    Hossein.K Profile Picture
    6,648 on at

    Hi,

    In method of this class the journal creates and post. Before post, you can develop your code.

  • @rp@n Profile Picture
    30 on at

    thanks Hossein,

    Can you please send me the screen shot of the method with line no. I mean , I am looking for "before post as you said".

    Please give me more shed on this.

    thanks!

  • @rp@n Profile Picture
    30 on at

    Hi Hossein,

    As you said, before post develop your code.

    you mean here ?

    post1.jpg

    Kindly confirm. If not then please suggest me.

    Please give me more shed on this.

    thanks!

  • Hossein.K Profile Picture
    6,648 on at

    I should know what is your changes exactly?

  • @rp@n Profile Picture
    30 on at

    Hi Hossein,

    My requirement is , when lines are created in vouchers during invoice so, it should check the line one by one and posting type = PPV ( purchase price varience" ).

    If PPV is found any of line then need to add some logic... based on PPV.

    @ I need to add this condition before posting.

    Kindly guide me where i can put the above condition?

    please give me more shed on this.

    thanks!

  • @rp@n Profile Picture
    30 on at

    Hi Hossein,

    pls reply me on this

    thanks!

  • Verified answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    I haven't written any code here in a while. It is necessary to examine a little with Debug, but if you are going to add a code for control, You can focus on;

    PurchInvoiceJournalPost.checkBeforePostingLine()

    If you are looking for the place where the journal lines created, I remember as;

    PurchInvoiceJournalCreate.createJournalLine()

  • @rp@n Profile Picture
    30 on at

    thanks Ergun,

    PurchInvoiceJournalCreate.createJournalLine()

    I believe, we get ledger account + posting type, etc.  line by line of journal by this method of PO invoice rite?

    please give me more shed on this.

    thanks!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 471 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 423 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans