Acumatica / 更新已关闭发票中的自由字段时出现问题
Acumatica / problem updating a free field in a closed invoice
当我更新 usrDocCom 字段时,我收到错误消息:
错误:更新 'SO Invoice' 记录至少引发了一个错误。请检查错误。错误:'Project' 不能为空。
我试图从项目字段中删除控件,但没有结果
protected void ARTran_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
if(InvokeBaseHandler != null)
InvokeBaseHandler(cache, e);
var row = (ARTran) e.Row;
if (row != null )
{
PXUIFieldAttribute.SetEnabled(cache, row, false);
PXUIFieldAttribute.SetEnabled<ARTranExt.usrDocCom>(cache, row, true);
}
}
protected void ARInvoice_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
if(InvokeBaseHandler != null)
InvokeBaseHandler(cache, e);
var row = (ARInvoice)e.Row;
**Base.Transactions.Cache.AllowUpdate = true;** // permet de mettre à jour les informations libre des lignes
}
谢谢
泽维尔
两件事...
- 确保项目字段至少分配了 non-project 代码。通常该值由 'X'
表示
- 建议您创建一个工作流并将启用的 属性 设置为 true,在发票的 Completed/Closed 状态。
当我更新 usrDocCom 字段时,我收到错误消息:
错误:更新 'SO Invoice' 记录至少引发了一个错误。请检查错误。错误:'Project' 不能为空。
我试图从项目字段中删除控件,但没有结果
protected void ARTran_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
if(InvokeBaseHandler != null)
InvokeBaseHandler(cache, e);
var row = (ARTran) e.Row;
if (row != null )
{
PXUIFieldAttribute.SetEnabled(cache, row, false);
PXUIFieldAttribute.SetEnabled<ARTranExt.usrDocCom>(cache, row, true);
}
}
protected void ARInvoice_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
if(InvokeBaseHandler != null)
InvokeBaseHandler(cache, e);
var row = (ARInvoice)e.Row;
**Base.Transactions.Cache.AllowUpdate = true;** // permet de mettre à jour les informations libre des lignes
}
谢谢 泽维尔
两件事...
- 确保项目字段至少分配了 non-project 代码。通常该值由 'X' 表示
- 建议您创建一个工作流并将启用的 属性 设置为 true,在发票的 Completed/Closed 状态。