Hi I need to populate the value of the shipping terms field in the Customers screen into the sales order header in a custom field. How can I achieve this? This is my code so far.
[PXDBString(100)]
[PXDefault(typeof(Search<Location.cShipTermsID,
Where<Location.bAccountID, Equal<Current<SOOrder.bAccountID>>,
And<Location.locationID, Equal<Current<SOOrder.shipToLocationID>>>>),
PersistingCheck = PXPersistingCheck.Nothing)]
[PXUIField(DisplayName="INCOTERMS")]
Please let me know if I’m implementing the right way, thank you!