This commit is contained in:
vchikalkin 2022-05-11 13:02:35 +03:00
commit 8acae30f7e

View File

@ -17,20 +17,12 @@ export default {
const results: Table['rows'] = [];
for (let i = 0; i < preparedData.preparedValues.nmper; i++) {
const balanceHolder = this.getValue('balanceHolder');
let redemptionAmount = {
value: sumRepaymentColumn?.values[i + 1],
};
if (balanceHolder === 100000001 && i < 12) {
redemptionAmount = {
value: 0,
};
}
results.push({
paymentSum: { value: sumWithVatColumn?.values[i + 1] },
ndsCompensation: { value: vatColumn?.values[i + 1] },
redemptionAmount,
redemptionAmount: {
value: sumRepaymentColumn?.values[i + 1],
},
});
}
@ -41,6 +33,7 @@ export default {
results[0].ndsCompensation.value -= subdidySum - subdidySum / 1.2;
}
//TODO: speed up table render
this.setTableRows('tableResults', 0)(results);
}
},