Пример #1
0
 /// <summary>
 /// Creates the stock record on creation of the stock receipt.
 /// </summary>
 /// <param name="stockReceiptModel"></param>
 private void CreateStockRecord(StockReceipt stockReceiptModel)
 {
     string GRNNo = _repository.GetGRN(stockReceiptModel.SiteId);
     //StockItem stockModel = new StockItem { GRNNo = GRNNo, ProductId = stockReceiptModel.ProductId, Product = stockReceiptModel.Product, LocationId= stockReceiptModel.LocationId, Location = stockReceiptModel.Location, SerialNo = stockReceiptModel.SerialNo, BatchNo = stockReceiptModel.BatchNo, DateReceived = stockReceiptModel.DateReceived, ReceivedBy = stockReceiptModel.ReceivedBy, InitialQty = stockReceiptModel.Qty, QtyAvailable = stockReceiptModel.Qty, CostPerUOM = stockReceiptModel.CostPerUOM, TotalCost = stockReceiptModel.TotalCost, Notes=stockReceiptModel.Notes, SiteId = stockReceiptModel.SiteId};
     //_repository.AddStockItem(stockModel);
 }