19. Oktober 2022 17:19
C427OutboxPurchHdrToInboxBeforeInsert(ICOutboxPurchHdr : Record "IC Outbox Purchase Header";VAR ICInboxSalesHdr : Record "IC Inbox Sales Header") (sitzt direkt vor dem Insert)
IF ICInboxSalesHdr."Ship-to Country/Region Code" <> '' THEN
EXIT;
IF ICPartner.GET(ICInboxSalesHdr."IC Partner Code") THEN BEGIN
IF ICCustomer.GET(ICPartner."Customer No.") THEN BEGIN
ICBusinessLogic.SetShipToCountryRegion(ICInboxSalesHdr."Ship-to Country/Region Code",ICCustomer."Country/Region Code");
END;
END;
SetShipToCountryRegion(VAR TargetShipToCountryRegion : Code[10];ShipToCountryRegion : Code[10])
TargetShipToCountryRegion := ShipToCountryRegion;