public static void DeleteSalesItem(ISalesItem item)
 {
     MerpDatabase().tbl_Sai.DeleteObject(LoadSalesItemByPrimaryKey(item.SaiId));
 }
Exemple #2
0
 public void AddItem(ISalesItem item)
 {
     this._items.Add(item);
 }
 public static void AddPosition(ISalesItem item)
 {
     MerpDatabase().tbl_Sai.AddObject(CreateSalesItem(item));
     MerpDatabase().SaveChanges();
 }
 public static tbl_Sai CreateSalesItem(ISalesItem item)
 {
     tbl_Sai sai = new tbl_Sai();
     sai.SaiNumber = item.SaiNumber;
     sai.SaiPrd_ = item.SaiPrdId;
     sai.Saidiscount = item.SaiDiscount;
     sai.SaiSah_ = item.SaiSahId;
     sai.Saivat = item.Saivat;
     return sai;
 }
 public void DeleteSalesPosition(ISalesItem item)
 {
     QuattroDataFactory.DeleteSalesItem(item);
 }
 public void AddSalesPosition(ISalesItem item)
 {
     QuattroDataFactory.AddPosition(item);
 }
 public SalesItemTaxDecorator(ISalesItem salesItem, ITax salesTax)
 {
     this._decoratedSalesItem = salesItem;
     this._salesTax = salesTax;
 }