public virtual IEnumerable Update(PXAdapter adapter) { if (MassUpdateSettings.AskExt() == WebDialogResult.OK) { this.Save.Press(); APUpdateSalesPriceProcess graph = PXGraph.CreateInstance <APUpdateSalesPriceProcess>(); foreach (APSalesPrice sp in PXSelect <APSalesPrice, Where <APSalesPrice.vendorID, Equal <Required <APSalesPriceFilter.vendorID> >, And <APSalesPrice.effectiveDate, IsNotNull, And <APSalesPrice.effectiveDate, LessEqual <Required <MassUpdateFilter.effectiveDate> >, And <APSalesPrice.isPromotionalPrice, Equal <boolFalse>, And <Where <APSalesPrice.vendorLocationID, Equal <Required <APSalesPriceFilter.locationID> >, Or <APSalesPrice.vendorLocationID, IsNull> > > > > > > > .Select(this, Filter.Current.VendorID, MassUpdateSettings.Current.EffectiveDate, Filter.Current.LocationID)) { graph.UpdateSalesPrice(sp); } Records.View.RequestRefresh(); SelectTimeStamp(); } return(adapter.Get()); }
public static void UpdateSalesPrice(APUpdateSalesPriceProcess graph, APSalesPrice item) { graph.UpdateSalesPrice(item); }