Hello Everyone,
I have extended Sales Order graph and override SOOrder_RowSelected even like below but it is not executing. Can someone help with the root cause or suggest a fix for this please.
Sample Event Code:
protected virtual void SOOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected baseHandler)
{
baseHandler?.Invoke(cache, e);
SOOrder row = e.Row as SOOrder;
if (row == null) return;
if (!string.IsNullOrEmpty(row.ShipTermsID) &&
(row.CuryLineTotal + row.CuryMiscTot + row.CuryTaxTotal) <= 49 && row.Status != SOOrderStatus.Completed && row.Status != SOOrderStatus.Invoiced)
cache.RaiseExceptionHandling<SOOrder.curyOrderTotal>(row, row.CuryOrderTotal, new PXSetPropertyException(“Order Total is less then $49. Please review”, PXErrorLevel.Warning));
}