public void RemoveSaleItem(SaleItem item) { SaleItems.Remove(item); CalculateValues(); }
/// <summary> /// Create a new SaleItem object. /// </summary> /// <param name="code">Initial value of the Code property.</param> /// <param name="terminalCode">Initial value of the TerminalCode property.</param> /// <param name="saleHeaderCode">Initial value of the SaleHeaderCode property.</param> /// <param name="terminalToCode">Initial value of the TerminalToCode property.</param> /// <param name="batch">Initial value of the Batch property.</param> /// <param name="productCode">Initial value of the ProductCode property.</param> /// <param name="productMasterCode">Initial value of the ProductMasterCode property.</param> /// <param name="productByWeight">Initial value of the ProductByWeight property.</param> /// <param name="priceValue">Initial value of the PriceValue property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="taxValue">Initial value of the TaxValue property.</param> /// <param name="tax1Value">Initial value of the Tax1Value property.</param> /// <param name="netPriceValue">Initial value of the NetPriceValue property.</param> public static SaleItem CreateSaleItem(global::System.Int32 code, global::System.Int32 terminalCode, global::System.Int32 saleHeaderCode, global::System.Int32 terminalToCode, global::System.String batch, global::System.Int32 productCode, global::System.String productMasterCode, global::System.Boolean productByWeight, global::System.Double priceValue, global::System.Double quantity, global::System.Double taxValue, global::System.Double tax1Value, global::System.Double netPriceValue) { SaleItem saleItem = new SaleItem(); saleItem.Code = code; saleItem.TerminalCode = terminalCode; saleItem.SaleHeaderCode = saleHeaderCode; saleItem.TerminalToCode = terminalToCode; saleItem.Batch = batch; saleItem.ProductCode = productCode; saleItem.ProductMasterCode = productMasterCode; saleItem.ProductByWeight = productByWeight; saleItem.PriceValue = priceValue; saleItem.Quantity = quantity; saleItem.TaxValue = taxValue; saleItem.Tax1Value = tax1Value; saleItem.NetPriceValue = netPriceValue; return saleItem; }
/// <summary> /// Deprecated Method for adding a new object to the SaleItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSaleItems(SaleItem saleItem) { base.AddObject("SaleItems", saleItem); }
public SaleLazyLoadingItemViewModel(SaleItem saleItem, Action<object> deleteAction) { this.saleItem = saleItem; this.deleteAction = deleteAction; }