ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 90 "Purch.-Post" - OnInsertInvoiceHeaderOnBeforeTransferFields

Open ReneZiel opened this issue 3 years ago • 3 comments

Hello, can you please add a new Event OnInsertInvoiceHeaderOnBeforeTransferFields in codeunit 90 "Purch.-Post" ?

        OnBeforeInsertInvoiceHeader(PurchHeader, PurchInvHeader, IsHandled, Window, HideProgressWindow, SrcCode, PurchCommentLine, RecordLinkManagement);
        if IsHandled then
            exit;

        with PurchHeader do begin
            PurchInvHeader.Init();
   
            IsHandled := false;
            OnInsertInvoiceHeaderOnBeforeTransferFields(PurchHeader, PurchInvHeader, IsHandled);
            if not IsHandled then

                PurchInvHeader.TransferFields(PurchHeader);

            PurchInvHeader."No." := "Posting No.";
            if "Document Type" = "Document Type"::Order then begin
                PurchInvHeader."Pre-Assigned No. Series" := '';
                PurchInvHeader."Order No. Series" := "No. Series";
                PurchInvHeader."Order No." := "No.";
            end else begin
    [IntegrationEvent(false, false)]
    local procedure OnInsertInvoiceHeaderOnBeforeTransferFields(PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean)
    begin
    end;

ReneZiel avatar May 10 '23 08:05 ReneZiel

Any reason why do you need this?

AlexanderYakunin avatar May 10 '23 08:05 AlexanderYakunin

Sorry this request was a mistake. I spoke to the developer and agreed on a different solution. This applies to all Transferfields events.

ReneZiel avatar May 10 '23 09:05 ReneZiel

Thank you, please close these requests.

AlexanderYakunin avatar May 10 '23 09:05 AlexanderYakunin