Skip to content

[US][Codeunit][6785][Withholding Tax Mgmt.][OnBeforeInsertWithholdingTax in InsertVendInvoiceWithholdingTax #30266

@rthorud

Description

@rthorud

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-infoThe issue misses information that prevents it from completion.

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions