I have created a custom DB-bound field, called Stock Number, in the ARTran, APTran, and GLTran DACs:
public class ARTranExt : PXCacheExtension<PX.Objects.AR.ARTran>
{
public abstract class usrLineStockNbr : IBqlField { }
[PXDBString(10)]
[PXUIField(DisplayName = "Stock Number")]
public virtual string UsrLineStockNbr { get; set; }
}
public class APTranExt : PXCacheExtension<PX.Objects.AP.APTran>
{
public abstract class usrLineStockNbr : IBqlField { }
[PXDBString(10)]
[PXUIField(DisplayName = "Stock Number")]
public virtual string UsrLineStockNbr { get; set; }
}
public class GLTranExt : PXCacheExtension<PX.Objects.GL.GLTran>
{
public abstract class usrLineStockNbr : IBqlField { }
[PXDBString(10)]
[PXUIField(DisplayName = "Stock Number")]
public virtual string UsrLineStockNbr { get; set; }
}
How would I go about pasting my custom field values from the AR Invoice and AP Bill details directly into GL Transactions?
To paste custom field value from ARTran to GLTran, you should create an extension for the ARReleaseProcess BLC and override the ReleaseInvoice method as shown in the following sample below:
This is how a newly generated GL Batch should look like: after the release of the AR Invoice below:
To paste custom field value from APTran to GLTran, you should create an extension for the APReleaseProcess BLC and override the ReleaseInvoice method as shown in the following sample below:
Here is an example of a new GL Batch: generated during the release of the AP Bill below: