最佳答案
您需要重写 ActionPrepareInvoice 并传递自定义字段。
有两种方法可以实现这一目标:
public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{
[PXOverride]
public IEnumerable PrepareInvoice(PXAdapter adapter, Func<PXAdapter, IEnumerable> baseMethod)
{
//You can paste your field either here
return baseMethod(adapter); // and then return
}
或者像这样:
public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{
[PXOverride]
public IEnumerable PrepareInvoice(PXAdapter adapter, Func<PXAdapter, IEnumerable> baseMethod)
{
var result = baseMethod(adapter);
// add your pasting of your field here + some logic
return result;
}
取决于您的用例。
关于acumatica - 如何在 acumatica 代码中将自定义字段值从销售订单屏幕传递到销售发票屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53721725/