Base: change tax_savings & vat_reimbursement
This commit is contained in:
parent
7ac304fcc3
commit
1edd6e8a1a
@ -33,7 +33,8 @@ public class BaseCalculation
|
|||||||
var leaseContractSum = (requestBaseCalculation.lease_period - 2) * (decimal)monthlyPayment +
|
var leaseContractSum = (requestBaseCalculation.lease_period - 2) * (decimal)monthlyPayment +
|
||||||
initialPaymentSum +
|
initialPaymentSum +
|
||||||
redemptionPaymentSum;
|
redemptionPaymentSum;
|
||||||
var taxSavings = leaseContractSum * (decimal)(constants.VatValue / 1.2);
|
var vat_reimbursement = leaseContractSum * (decimal)(constants.VatValue / 1.2);
|
||||||
|
var tax_savings = leaseContractSum * (decimal)(0.25 / 1.2);
|
||||||
|
|
||||||
var schedule = Array<decimal>.Concat(
|
var schedule = Array<decimal>.Concat(
|
||||||
new decimal[] { initialPaymentSum }
|
new decimal[] { initialPaymentSum }
|
||||||
@ -45,8 +46,8 @@ public class BaseCalculation
|
|||||||
return new ResponseBaseCalculation()
|
return new ResponseBaseCalculation()
|
||||||
{
|
{
|
||||||
monthly_payment = (decimal)monthlyPayment,
|
monthly_payment = (decimal)monthlyPayment,
|
||||||
tax_savings = taxSavings,
|
tax_savings = tax_savings,
|
||||||
vat_reimbursement = taxSavings,
|
vat_reimbursement = vat_reimbursement,
|
||||||
schedule = schedule
|
schedule = schedule
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user