Exemple #1
0
        //For Stock Card

        public void InsertStockCard(int ReferenceId, int itemId, decimal unitcost, int quantiy)
        {
            ItemStockCardRepository stockcardRepo = new ItemStockCardRepository();

            StockCard stockCard = new StockCard
            {
                ItemId          = itemId,
                ReferenceModule = "Purchase Order",
                ReferenceId     = ReferenceId,
                Qty             = quantiy,
                UnitCost        = unitcost,
                CompanyId       = Sessions.CompanyId.Value,
                Date            = DateTime.Now
            };


            context.StockCards.Add(stockCard);
        }
Exemple #2
0
        public void InsertStockCard(int ReferenceId, int itemId, decimal unitcost, int quantiy, int?TransLogId)
        {
            ItemStockCardRepository stockcardRepo = new ItemStockCardRepository();

            StockCard stockCard = new StockCard
            {
                ItemId          = itemId,
                ReferenceModule = "Requisition",
                ReferenceId     = ReferenceId,
                Qty             = quantiy,
                UnitCost        = unitcost,
                CompanyId       = Sessions.CompanyId.Value,
                Date            = DateTime.Now,
                TransLogId      = TransLogId
            };


            stockcardRepo.Add(stockCard);
        }