Hi all,
We use purchase quotes for taxable purchases. In this case, most of the vendors in our system are non-taxable for purchase orders.
I would like to:
- set a trigger after changing the buy-from vendor name
- this trigger should over-ride default vendor settings, and set purchaseheader.taxliable = true if it is a purchase quote
Appreciate your guidance and suggestions,
**RESOLVED** Incase if it is of help to anyone
codeunit 60002 c60002PurchaseHeaderTaxLiable
{
[EventSubscriber(ObjectType::Page, Page::"Purchase Quote", 'OnAfterValidateEvent', 'Buy-from Vendor Name', false, false)]
local procedure MyProcedure(var Rec: Record "Purchase Header")
begin
Rec."Tax Liable" := true;
Rec."Tax Area Code" := 'CA';
rec.Modify();
end;
}
Thank you