Why do you need this change?
Need to calculate AmountVAT based on fixed fee per quantity and unit of measure than percent of total (e.g. 1 cent per bushel of grain). Current code only allows one way of calculation the withholding amount.
Describe the request
We need an integration event added at then end of the procedure InsertVendInvoiceWithholdingTax right before the call to InsertWithholdingTax(TType::Purchase);. The event must pass a reference to the AmountVAT variable and the Purchase Invoice Header:
[IntegrationEvent(false,false)]
local procedure OnBeforeInsertWithholdingTax(var AmountVAT: Decinal; PurchInvHeader: Record "Purchase Invoice Header");
begin
end;
There are no existing events in this extension.
There are no expected impacts to performance, data sensitivity, or interactions or conflicts with other extensions.
Why do you need this change?
Need to calculate AmountVAT based on fixed fee per quantity and unit of measure than percent of total (e.g. 1 cent per bushel of grain). Current code only allows one way of calculation the withholding amount.
Describe the request
We need an integration event added at then end of the procedure InsertVendInvoiceWithholdingTax right before the call to InsertWithholdingTax(TType::Purchase);. The event must pass a reference to the AmountVAT variable and the Purchase Invoice Header:
[IntegrationEvent(false,false)]
local procedure OnBeforeInsertWithholdingTax(var AmountVAT: Decinal; PurchInvHeader: Record "Purchase Invoice Header");
begin
end;
There are no existing events in this extension.
There are no expected impacts to performance, data sensitivity, or interactions or conflicts with other extensions.