Ejemplo n.º 1
0
        public IActionResult TransfersLedger(SalesTransferLedgerViewModel model)
        {
            model.Date   = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            model.Ledger = new StationsService().GetProductsTransfers(model.Date, DateTime.Now);

            return(View(model));
        }
        public IActionResult StocksTransferred(int month, int year, SalesTransferLedgerViewModel model)
        {
            model.Date   = new DateTime(year, month, 1);
            model.Ledger = new StationsService().GetProductsTransfers(model.Date, model.Date.AddMonths(1).AddDays(-1));

            return(View(model));
        }