[EventSubscriber(ObjectType::Codeunit, Codeunit::/Purch. Doc. From Sales Doc./, 'OnCreatePurchaseHeaderOnBeforeInsert', '', false, false)]
local procedure OnCreatePurchaseHeaderOnBeforeInsert(var PurchaseHeader: Record /Purchase Header/; SalesHeader: Record /Sales Header/; Vendor: Record Vendor)
begin
PurchaseHeader./PI Created By/ := SalesHeader./PI Created By/;
PurchaseHeader./SalesPerson CSR/ := SalesHeader./SalesPerson CSR/;
end;
But it is not working, in the debugger also not going to this break point, is there any event for doing this, can anyone help me on this, Thanks for your advices.
Thanks & Regards,
Satish
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156