Hi ALL,
In the Salesline i created a custom field as "Shipment UOM" , in the WarehouseShipment also i created a custom Field "Shipment UOM", I want to populate the value of saleline custom field to warehouse shipment line, but it is not populating, can anyone help me, I am attaching my code here, I have tried with onvalidate and in table level and onaftergetrecord in page level but it is not populating.
Thanks & Regards,
Sams
Are you sure this is a necessary modification? Every Item can have a "Sales Unit of Measure" defined on the Item Record. This value defaults to the Sales Line when a new Sales Document Line is created. If your base/purchase UOM is different the Warehousing function can help with the Pick/Place of different UOM.
I would encourage you to test the base capability before pushing your modification. Perhaps reach out to your Business Central partner to confirm the capability.
This code will execute when you validate the field in Warehouse Shipment Line.
You have to use the subscribers in function FromSalesLine2ShptLine of codeunit 5750 "Whse.-Create Source Document"
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,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156