protected new virtual IEnumerable Cancel(PXAdapter a) { if (a.Searches.Length == 1) { PXResult <SOOrderType> orderType = PXSelectJoin <SOOrderType, LeftJoin <SOOrderTypeOperation, On <SOOrderTypeOperation.orderType, Equal <SOOrderType.orderType>, And <SOOrderTypeOperation.operation, Equal <SOOrderType.defaultOperation> > > > > .Search <SOOrderType.orderType>(this, a.Searches[0]); if (orderType != null && (!soordertype.View.BqlSelect.Meet(soordertype.Cache, (SOOrderType)orderType) || !soordertype.View.BqlSelect.Meet(operations.Cache, PXResult.Unwrap <SOOrderTypeOperation>(orderType)))) { a.Searches[0] = null; } } return((new PXCancel <SOOrderType>(this, "Cancel")).Press(a)); }
protected virtual void ARInvoice_RowSelecting(PXCache sender, PXRowSelectingEventArgs e) { ARInvoice row = (ARInvoice)e.Row; if (row != null && !String.IsNullOrEmpty(row.DocType) && !String.IsNullOrEmpty(row.RefNbr)) { row.IsCCPayment = false; if (CCPayments.Search <SOInvoice.docType, SOInvoice.refNbr>(row.DocType, row.RefNbr).Count > 0) { row.IsCCPayment = true; } } }
protected new virtual IEnumerable Cancel(PXAdapter a) { if (a.Searches.Length == 1) { PXResult <SOOrderType> orderType = PXSelectJoin <SOOrderType, LeftJoin <SOOrderTypeOperation, On2 <SOOrderTypeOperation.FK.OrderType, And <SOOrderTypeOperation.operation, Equal <SOOrderType.defaultOperation> > > >, Where <SOOrderType.requireShipping, Equal <boolFalse>, Or <FeatureInstalled <FeaturesSet.inventory> > > > .Search <SOOrderType.orderType>(this, a.Searches[0]); if (orderType != null && (!soordertype.View.BqlSelect.Meet(soordertype.Cache, (SOOrderType)orderType) || !soordertype.View.BqlSelect.Meet(operations.Cache, PXResult.Unwrap <SOOrderTypeOperation>(orderType)))) { a.Searches[0] = null; } } return((new PXCancel <SOOrderType>(this, "Cancel")).Press(a)); }