[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