【发布时间】:2020-10-02 08:55:09
【问题描述】:
美好的一天
我有一个执行我编写的操作的导入场景。当我在客户屏幕上单击它时,该操作确实有效,但是当我尝试从导入场景执行它时,它就好像它没有执行一样。我在 C# 中添加了一个断点,以查看它是否曾经执行过,但它不会“中断”。
这是我要执行的代码:
public PXAction<Customer> UpdateCreditRemaining;
[PXButton(CommitChanges = true)]
[PXUIField(DisplayName = "Recalculate Credit details")]
protected void updateCreditRemaining()
{
try
{
Customer row = (Customer)this.Base.BAccount.Current;
BAccountExt curBAccountExt = row.GetExtension<BAccountExt>();
curBAccountExt.UsrUpdateDateTime = DateTime.Now.ToString();
Base.BAccount.Update(row);
// Base.Persist();
}
catch(Exception ex)
{ }
}
希望有人遇到同样的问题并可以提供帮助。
【问题讨论】:
标签: acumatica