Hello Experts,
I have taken 4 fields(supplier name , supplier date , Remark , QC inspector, on warehouse receipt line and same on Purch. Rcpt. 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.
I Tried using Event subcriber but not Getting How and where to Wirte Code
Can you please Help experts
Thank in advance
Thanks in Advance
hi
try this function OnAfterPostedWhseRcptLineInsert
you have the two instances you are interested in: PostedWhseRcptLine, WhseRcptLine
then within the function you create you can assign the values
PostedWhseRcptLine. "Supllier Name". := WhseRcptLine.Supllier Name" ;
PostedWhseRcptLine.Remark :=WhseRcptLine.Remark;
PostedWhseRcptLine. "QC Inspector":=WhseRcptLine. "QC Inspector";
check my answer if it helped you, thanks
DAniele
Hi sir,
I have created saprate codunint and subscribe event as follw
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Whse.-Post Receipt", 'OnAfterPostWhseJnlLine', '', true, true)]
local procedure OnAfterPostWhseJnlLine(var WarehouseReceiptLine: Record "Warehouse Receipt Line")
var
warehousereceiptLine: Record "Warehouse Receipt Line";
begin
warehousereceiptLine."Supllier Name" := Supllier Name" ;
warehousereceiptLine.Remark :=Remark;
warehousereceiptLine."QC Inspector":= "QC Inspector";
end;
also at page extension also tried but not Getting
WRL."Supllier Name" := Rec.?
WRL.Remark :=REc?
WRL."QC Inspector":= Rec?
You can try below Event from codeunit 5760 "Whse.-Post Receipt
OnPostSourceDocumentOnBeforePostPurchaseHeader(var PurchHeader: Record "Purchase Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; SuppressCommit: Boolean; var CounterSourceDocOK: Integer; var IsHandled: Boolean)
Can you please highlight which Event/Publisher you have tried using? Also maybe post the code you've written
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,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156