【发布时间】:2018-05-17 09:18:10
【问题描述】:
我正在尝试在 Acumatica ERP 的发货屏幕上创建自定义。
当我们选择订单号时,我创建了额外的自定义以将 OpenOrderQty 复制到 ShippedQty。
这是我的代码:
public void SOShipLine_RowInserting(PXCache sender, PXRowInsertingEventArgs e, PXRowInserting baseMethod)
{
if (baseMethod != null)
baseMethod(sender, e);
SOShipLine line = e.Row as SOShipLine;
if (line == null) return; // just in case
if (line.ShippedQty == 0)
{
sender.SetValueExt<SOShipLine.ShippedQty>(line, line.OpenOrderQty);
}
}
但是,当我发布自定义时,出现错误:
\App_RuntimeCode\SOShipmentEntry.cs(85):错误 CS0118: 'PX.Objects.SO.SOShipLine.ShippedQty' 是一个 'property' 但使用起来像 一个“类型”
sender.SetValueExt 有问题吗?
【问题讨论】:
标签: acumatica