Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

PurchInvoiceJournalPost > PostLine method in ax 2012 r3

Posted on by 5,901

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!

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    sure, will do...

  • Verified answer
    Hossein.K Profile Picture
    Hossein.K 6,642 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    Hi,

    Normally the changes in side of technical need to debug and in this community the guys can hint you and not more.

    Thus please use the hints but complete them with debug or ...

    in process of PO:

    -FormletterJournalPost class, is used for insert vouchers and post them(go to Classes\FormletterJournalPost \Post).

    - InventoryMainAccDimensionListProvider class, is used for invoke purchline items such as itemid and .... and finally In this way,fetch posting profile by this method  InventPosting::accountItemLedgerDimension

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    Thanks Ergun,

    I think those fields ( ledger account + posting type) are related to GeneralJournalAccountEntry table .

    Please give me more shed on this 

    Thanks!

  • ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    ledger account + posting type?

    Which fields of which table are you trying to reach? I don't think VendInvoiceTrans has this fields

    If you provide the full table name and field name, we won't guess and mislead you.

  • Verified answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    Yes, init methods are called in this method, usually fields are filled in these methods.

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    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!

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    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!

  • Verified answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    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
    @rp@n 5,901 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    Hi Hossein,

    pls reply me on this

    thanks!

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: PurchInvoiceJournalPost > PostLine method in ax 2012 r3

    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!

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans