I have created a custom bool field on SOOrder.
#region UsrFreightRecovered
[PXDBBool]
[PXUIField(DisplayName = "Freight Recovered")]
[PXDefault(false, PersistingCheck = PXPersistingCheck.Nothing)]
public bool? UsrFreightRecovered { get; set; }
public abstract class usrFreightRecovered :
PX.Data.BQL.BqlBool.Field<usrFreightRecovered> { }
#endregion
This field indicates that freight charges are to be handled in a non-standard way. I need to present the fact that the custom field is true on the invoice header.
From reading here, and attempting to code this, it seems that I have to pass the value to ARTran. The field needs to be immutable on the invoice, so I added it as a non-persisted string. I want to mark the value as true in the invoice header if any ARTran line has the value as true.
I am at a loss at this point. I have no idea how to access the the Order Nbr field for each detail line in order to look up the custom field value, or how to pass that value to the Invoice header.
Can anyone point me to resources that may help me?
Best answer by darylbowman
View original