ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[extensibility-enhancement] - Codeunit 90 "Purch.-Post" - OnBeforeDivideAmount

Open SPinkow opened this issue 6 years ago • 2 comments

Hi,

could you please add a var for the variable "PurchLineQty" like in the analog Publisher OnBeforeDivideAmount in Codeunit 80 in order to access the Parameter as CallByReference.

Currently the publisher looks like the following: [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end;

In the end it should be [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping;varPurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end;

Thanks for a consideration in the future. Best Regards

SPinkow avatar May 27 '20 15:05 SPinkow

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. We will update this issue with information about availability.

bc-ghost avatar Jun 01 '20 19:06 bc-ghost

Please use Codeunit 80 for reference, other parameters should also be defined as 'var':

    [IntegrationEvent(false, false)]
    local procedure OnBeforeDivideAmount(**var** SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; var SalesLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean)

GijsFranssens avatar Feb 28 '22 16:02 GijsFranssens