ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Correct Posted Purch. Invoice

Open KarelKoncel opened this issue 3 years ago • 1 comments

Hi please make it same as in Sales Codeunit 1303

Codeunit 1313 "Correct Posted Purch. Invoice"

local procedure TestIfAnyFreeNumberSeries(PurchInvHeader: Record "Purch. Inv. Header")
    var
        GenJournalTemplate: Record "Gen. Journal Template";
        GeneralLedgerSetup: Record "General Ledger Setup";
        PurchasesPayablesSetup: Record "Purchases & Payables Setup";
        NoSeriesManagement: Codeunit NoSeriesManagement;
        PostingDate: Date;
        PostingNoSeries: Code[20];
    begin
//NewCode ->
        IsHandled := false;
        OnBeforeTestIfAnyFreeNumberSeries(PurchInvHeader,CancellingOnly, IsHandled);
        if IsHandled then
            exit;
//NewCode <-

        PostingDate := WorkDate();
        PurchasesPayablesSetup.Get();
   [IntegrationEvent(false, false)]
    local procedure OnBeforeTestIfAnyFreeNumberSeries(var PurchInvHeader: Record "Purch. Inv. Header";CancellingOnly: Boolean; var IsHandled: Boolean)
    begin
    end;

KarelKoncel avatar Feb 14 '23 13:02 KarelKoncel

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. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

Build ID: 53452.

JesperSchulz avatar Feb 21 '23 10:02 JesperSchulz