Пример #1
0
        private MassVoucher GetCurrentVoucher()
        {
            MassVoucher massVoucher = new MassVoucher
            {
                Amount                     = Amount,
                Project                    = SelectedProject,
                Head                       = SelectedHead,
                VoucherType                = SelectedVoucherType,
                VoucherSerialNo            = VoucherSerialNo,
                VoucherDate                = VoucherDate,
                JVDebitOrCredit            = SelectedJVDebitOrCredit,
                ContraType                 = SelectedContraType,
                IsCheque                   = IsPaymentInCheque,
                IsFixedAsset               = IsFixedAsset,
                ChequeNo                   = ChequeNo,
                ChequeDate                 = ChequeDate,
                BankName                   = BankName,
                FixedAssetName             = FixedAssetParticulars,
                FixedAssetDepreciationRate = FixedAssetDepreciationRate,
                Tag           = GetTag(),
                Narration     = Narration,
                FinancialYear = _parameterManager.GetCurrentFinancialYear()
            };

            return(massVoucher);
        }
Пример #2
0
        public void GetCurrentFinantialYearWillBeTodaysYear()
        {
            string expected = "2012";
            string actual   = _parameterManager.GetCurrentFinancialYear();

            Assert.AreEqual(expected, actual, "Current finantial year will be create year. ie today");
        }