[Event Request] SalesHeader."Ship-To Code"
Please publish an event in Table 36 Sales Header, Ship-to Code OnValidate: "Shipping Agent Service Code" := ShipToAddr."Shipping Agent Service Code"; IF ShipToAddr."Tax Area Code" <> '' THEN "Tax Area Code" := ShipToAddr."Tax Area Code"; "Tax Liable" := ShipToAddr."Tax Liable"; Publish Here (Pass Rec var = True and Cust and ShipToAddr variables) END ELSE IF "Sell-to Customer No." <> '' THEN BEGIN GetCust("Sell-to Customer No.");
Also a little lower it would be nice to have similar for the customer: IF Cust."Location Code" <> '' THEN VALIDATE("Location Code",Cust."Location Code"); "Shipping Agent Code" := Cust."Shipping Agent Code"; "Shipping Agent Service Code" := Cust."Shipping Agent Service Code"; Publish Here (Pass Rec var = True and Cust variable) END;
GetShippingTime(FIELDNO("Ship-to Code"));
The OnAfterValidateShipToCode automatic event would work as well but need to recreate a bit of code to get there so it would be nicer to have publications here especially since this is a common place for mods.
You already have event OnAfterCopyShipToCustomerAddressFieldsFromShipToAddr(Rec,ShipToAddr) here
My bad as I was looking at NAV 2018. Finally got a Docker BC image spun up for the first time and I see the events. Thanks!