I have taken 3 fields on warehouse receipt line and same on purchase receipt line as shown in image.I want to flow data from warehouse receipt line to purch receipt line when I click post receipt action on warehouse. I tried on event (on after insert) but did not work. If you have any idea, please share.
Thanks in Advance
[EventSubscriber(ObjectType::Table, Database::"Purch. Rcpt. Line", 'OnAfterInsertEvent', '', true, true)] local procedure MyProcedure(RunTrigger: Boolean; var Rec: Record "Purch. Rcpt. Line") var warehousereceipt: Record "Warehouse Receipt Line"; begin warehousereceipt."Nos. of Pallet" := Rec."Nos. of Pallet"; warehousereceipt."Bags/pallet" := rec."Bags/pallet"; warehousereceipt."Loose Bags" := rec."Loose Bags"; end;