Create new extension 2.0 of the standard codeunit.

ivancito86ivancito86 Member Posts: 18
Hello everybody!

I need create a new function in the Codeunit "Gen. Jnl.-Post Line", this function it'is only use to public it. For example:

LOCAL [IntegrationEvent] OnBeforeInsertVendorLedgerEntry(PGenJournalLine : Record "Gen. Journal Line";VAR PVendorLedgerEntry : Record "Vendor Ledger Entry")


And then I need call it in the function PostVend also in codeunit 12, for example:


OnBeforeInsertVendorLedgerEntry(GenJnlLine,VendLedgEntry);

// Post vendor entry
VendLedgEntry.CopyFromCVLedgEntryBuffer(CVLedgEntryBuf);



I need to do it in visual studio code.

Somebody can you help me???

thanks!!

Answers

  • krikikriki Member, Moderator Posts: 9,112
    [Topic moved from 'NAV Tips & Tricks' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.