Example #1
0
        public DebtToPay(DeductionCLT creditValue, double billBank, double educationCourse, double INSS)
        {
            //Console.WriteLine("\nValor das dividas previstas: R$" + GetTotalOfDebt());

            ///*SetValues -- Test*/
            ////Simulation of month August

            //SetEducationCourses(330.50);
            //SetOthersPayment(160);
            //SetBillBank(171.50);
            //SetSaveMoney(creditValue.GetSalaryLiquido() * 0.4);

            SetBillBank(billBank);
            SetSaveMoney(creditValue.GetSalaryLiquido() * 0.4);
            SetEducationCourses(educationCourse);
            SetOthersPayment(INSS);

            if (creditValue.GetSalaryLiquido() > GetTotalOfDebt())
            {
                Console.WriteLine("\nValor restante: R$" + ((creditValue.GetSalaryLiquido() - GetSaveMoney()) - GetTotalOfDebt()));
            }
            else
            {
                Console.WriteLine("Valor das dívidas supera o valor disponível ... ");
            }
        }
 public void SetDepositMonthly(DeductionCLT actualSalary)
 {
     depositMonthly = actualSalary.GetSalaryLiquido() * 0.4;
 }
 public void PercentageBillSalary(DeductionCLT salary)
 {
     Console.WriteLine("Percentual da conta: " + (GetPriceBill() * 100) / salary.GetSalaryLiquido());
 }
Example #4
0
 public void SetSalaryToCompare(DeductionCLT salaryToCompare)
 {
     this.salaryToCompare = salaryToCompare.GetSalaryLiquido();
 }
Example #5
0
 //SET method
 public void SetActualSalary(DeductionCLT actualSalary)
 {
     this.actualSalary = actualSalary.GetSalaryLiquido();
 }