ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] codeunit 90 "Purch.-Post" - OnInsertInvoiceHeaderOnBeforeTransferFields
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;
Any reason why do you need this?
Sorry this request was a mistake. I spoke to the developer and agreed on a different solution. This applies to all Transferfields events.
Thank you, please close these requests.