ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Report 1305 "Standard Sales - Order Conf." OnAfterFormatDocumentFields

Open samra-singhammer opened this issue 4 years ago • 1 comments

Please add a new publisher event in the report 1305 Sales - Confirmation:

local procedure FormatDocumentFields(SalesHeader: Record "Sales Header")
begin
    with SalesHeader do begin
        FormatDocument.SetTotalLabels("Currency Code", TotalText, TotalInclVATText, TotalExclVATText);
        FormatDocument.SetSalesPerson(SalespersonPurchaser, "Salesperson Code", SalesPersonText);
        FormatDocument.SetPaymentTerms(PaymentTerms, "Payment Terms Code", "Language Code");
        FormatDocument.SetPaymentMethod(PaymentMethod, "Payment Method Code", "Language Code");
        FormatDocument.SetShipmentMethod(ShipmentMethod, "Shipment Method Code", "Language Code");
        **_OnAfterFormatDocumentFields(SalesHeader);_**
    end;
end;

Definition: [IntegrationEvent(false, false)] local procedure OnAfterFormatDocumentFields(var SalesHeader: Record "Sales Header") begin end;

samra-singhammer avatar Aug 05 '22 08:08 samra-singhammer

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: 46955.

JesperSchulz avatar Sep 27 '22 17:09 JesperSchulz