Good day
I have an Import scenario that executes an action that I wrote. The action does work when I click it on the customer screen but when I try to execute it from an import scenario its as if it doesn't execute. I have added a breakpoint in C# to see if it ever executes but it doesn't "break".
Here is the code i am trying to execute:
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)
{ }
}
Hope someone has had the same problem and can help.