microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
768 stars 611 forks source link

Codeunit 11 Gen. Jnl.-Check Line (Previous Request ID #4332 which is done) #5353

Closed brijeshkarnatak closed 4 years ago

brijeshkarnatak commented 4 years ago

Hi!

The Parameter is added on the function (CheckSalesDocNoIsNotUsed) now on "Update 15.2 for Microsoft Dynamics 365 Business Central 2019 Release Wave 2", but if we can add a parameter variable GenJnlLine : Record "Gen. Journal Line to the event “OnBeforeCheckSalesDocNoIsNotUsed” to make it more efficiently handled.

OnBeforeCheckSalesDocNoIsNotUsed(GenJnlLine : Record "Gen. Journal Line", ISHandled);

AlexanderYakunin commented 4 years ago

This is already done IsHandled := false; OnBeforeCheckSalesDocNoIsNotUsed(GenJournalLine."Document Type", GenJournalLine."Document No.", IsHandled, GenJournalLine); if IsHandled then exit;