aismel87
aismel87
Hello AL Dev Team! The code must be here (line 174):  ``` // Init New Code OnCalculateInvoiceDiscountOnBeforeGetGLSetup(CustInvDisc, SalesHeader); // End New Code GLSetup.Get(); if GLSetup."Payment Discount Type" GLSetup."Payment Discount...
Hello AL Dev Team! The code must be here (line 172):  ``` //Init new code OnCalculateInvoiceDiscountOnBeforeGetGLSetup(VendInvDisc, PurchHeader); //end new code GLSetup.Get(); if GLSetup."Payment Discount Type" GLSetup."Payment Discount Type"::"Calc. Pmt....
Additional Context: I need this parameters for rounding with the "Document date" instead of the "Posting Date": SalesLine."Amount Including VAT" := Round( CurrExchRate.ExchangeAmtFCYToLCY( **SalesHeader.GetUseDate(),** SalesHeader."Currency Code", TotalSalesLine."Amount Including VAT", SalesHeader."Currency...
Hello, Sorry, I need the SalesLine parameter too, passed by reference. New Code OnRoundAmountOnAfterAssignSalesLines(xSalesLine, SalesLineACY, SalesHeader, IsHandled, TotalSalesLine , TotalSalesLineLCY, SalesLine); New publisher: [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record...
Hello, Sorry, I need the PurchaseLine parameter too, passed by reference. New Code OnRoundAmountOnBeforeCalculateLCYAmounts(xPurchLine, PurchLineACY, PurchaseHeader, IsHandled, TotalPurchLine, TotalPurchLineLCY, PurchaseLine); New publisher: [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase...