ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Additional Parameter Request] Codeunit 11 Gen. Jnl.-Check Line - OnBeforeCheckPurchDocNoIsNotUsed

Open aobsgit opened this issue 6 years ago • 1 comments

Could you please add additional parameter (Record "Gen. Journal Line") to OnBeforeCheckPurchDocNoIsNotUsed in CU11. Somehow related issue is #4332.

OLD CODE

procedure CheckPurchDocNoIsNotUsed(var GenJournalLine: Record "Gen. Journal Line")
var
    OldVendLedgEntry: Record "Vendor Ledger Entry";
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeCheckPurchDocNoIsNotUsed(GenJournalLine."Document Type".AsInteger(), GenJournalLine."Document No.", IsHandled);
    if IsHandled then
        exit;
    .
    .
    .

NEW CODE

procedure CheckPurchDocNoIsNotUsed(var GenJournalLine: Record "Gen. Journal Line")
var
    OldVendLedgEntry: Record "Vendor Ledger Entry";
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeCheckPurchDocNoIsNotUsed(GenJournalLine."Document Type".AsInteger(), GenJournalLine."Document No.", IsHandled,GenJournalLine);
    if IsHandled then
        exit;
    .
    .
    .

OLD EVENT

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckPurchDocNoIsNotUsed(DocType: Option; DocNo: Code[20]; var IsHandled: Boolean)
begin
end;

NEW EVENT

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckPurchDocNoIsNotUsed(DocType: Option; DocNo: Code[20]; var IsHandled: Boolean; GenJournalLine: Record "Gen. Journal Line")
begin
end;

aobsgit avatar Oct 06 '20 08:10 aobsgit

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Oct 10 '20 07:10 bc-ghost