protected void APAdjust_RowInserting(PXCache sender, PXRowInsertingEventArgs e) { APAdjust row = e.Row as APAdjust; if (row != null) { row.GetExtension <APAdjustExt>().InvoiceNbr = GetInvoiceNbr(row); } }
protected void APAdjust_RowSelecting(PXCache sender, PXRowSelectingEventArgs e) { APAdjust row = e.Row as APAdjust; if (row == null) { return; } using (var connScope = new PXConnectionScope()) { row.GetExtension <APAdjustExt>().InvoiceNbr = GetInvoiceNbr(row); } }