0
受注明細(SOLine)の行にカスタムフィールド値を販売請求書(ARTran)にプロポーズしようとしています。私は他の例を見てきましたが、下記を参照してください...動作するようにコードを取得することはできません。AcumaticaカスタムフィールドSOLineをARTranに転送
using PX.Objects.SO;
namespace PX.Objects.SO
{
public class SOInvoiceEntry_Extension:PXGraphExtension<SOInvoiceEntry>
{
#region Event Handlers
public delegate void InvoiceCreatedDelegate(ARInvoice invoice, SOOrder
source);
[PXOverride]
public void InvoiceCreated(ARInvoice invoice, SOOrder source,
InvoiceCreatedDelegate baseMethod)
{
baseMethod(invoice,source);
ARTran.RowInserted.AddHandler<ARTran>((cache, args) =>
{
var arTran = (ARTran)args.Row;
ARTranExt arTranExt = PXCache<ARTran>.GetExtension<ARTranExt>(arTran);
SOLineExt soLineExt = PXCache<SOLine>.GetExtension<SOLineExt>(soLine);
arTranExt.UsrContactID = soLineExt.UsrContactID;
});
}
#endregion
}
}