Exemple #1
0
        public IdReceipt GetNewIdReceipt(int pIdWorkplace = 0, int pCodePeriod = 0)
        {
            var idReceip = new IdReceipt()
            {
                IdWorkplace = (pIdWorkplace == 0 ? Global.IdWorkPlace : pIdWorkplace), CodePeriod = (pCodePeriod == 0 ? Global.GetCodePeriod() : pCodePeriod)
            };

            curRecipt = new Receipt(db.GetNewReceipt(idReceip));
            db.RecalcPriceAsync(new IdReceiptWares(curRecipt));
            return(curRecipt);
        }