public Inv_StockItem SetToModelObjectStockItem(InvLeatherTransferReceiveItem model) { Inv_StockItem Entity = new Inv_StockItem(); Entity.StoreID = model.StoreID; Entity.ItemTypeID = model.ItemType; Entity.LeatherType = model.LeatherType; Entity.LeatherStatus = model.LeatherStatus; Entity.UnitID = model.UnitID; Entity.OpeningQty = 0; Entity.ReceiveQty = model.ReceiveQty; Entity.IssueQty = 0; // model.IssueQty; Entity.ClosingQty = Entity.OpeningQty + model.ReceiveQty; // - model.IssueQty; return(Entity); }
public Inv_StockDaily SetToModelObjectDailyStock(InvLeatherTransferReceiveItem model) { Inv_StockDaily Entity = new Inv_StockDaily(); Entity.StockDate = System.DateTime.Now.Date; Entity.StoreID = model.StoreID; Entity.ItemTypeID = model.ItemType; Entity.LeatherType = model.LeatherType; Entity.LeatherStatus = model.LeatherStatus; Entity.UnitID = model.UnitID; Entity.OpeningQty = 0; Entity.DailyReceiveQty = model.ReceiveQty; Entity.DailyIssueQty = 0; //model.IssueQty; Entity.ClosingQty = Entity.OpeningQty + model.ReceiveQty; // - model.IssueQty; return(Entity); }
public Inv_StockSupplier SetToModelObjectStockSupplier(InvLeatherTransferReceiveItem model) { Inv_StockSupplier Entity = new Inv_StockSupplier(); Entity.SupplierID = model.SupplierID; Entity.StoreID = model.StoreID; Entity.RefChallanID = model.ChallanID; Entity.PurchaseID = model.PurchaseID; Entity.ItemTypeID = model.ItemType; Entity.LeatherType = model.LeatherType; Entity.LeatherStatusID = model.LeatherStatus; Entity.UnitID = model.UnitID; Entity.OpeningQty = 0; // model.StockQty; Entity.ReceiveQty = model.ReceiveQty; Entity.IssueQty = 0; // model.IssueQty; Entity.ClosingQty = Entity.OpeningQty + model.ReceiveQty - Entity.IssueQty; Entity.UpdateReason = "store Transfer Receive"; return(Entity); }