calculate: fix output validation
This commit is contained in:
parent
5432536b2e
commit
4d9cdf79a4
@ -21,16 +21,16 @@ export function transformCalculateResults({
|
||||
length: preparedValues.nmper,
|
||||
},
|
||||
(_, i) => ({
|
||||
cashflowMsfoColumn: columns?.cashflowMsfoColumn.values[i + 1],
|
||||
cashflowMsfoWithCfColumn: columns?.cashflowMsfoWithCfColumn.values[i + 1],
|
||||
creditPaymentColumn: columns?.creditPaymentColumn.values[i + 1],
|
||||
interestColumn: columns?.interestColumn.values[i + 1],
|
||||
cashflowMsfoColumn: columns?.cashflowMsfoColumn.values[i + 1] || 0,
|
||||
cashflowMsfoWithCfColumn: columns?.cashflowMsfoWithCfColumn.values[i + 1] || 0,
|
||||
creditPaymentColumn: columns?.creditPaymentColumn.values[i + 1] || 0,
|
||||
interestColumn: columns?.interestColumn.values[i + 1] || 0,
|
||||
key: String(i + 1),
|
||||
ndsCompensation: columns?.vatColumn.values[i + 1],
|
||||
ndsCompensation: columns?.vatColumn.values[i + 1] || 0,
|
||||
num: i + 1,
|
||||
paymentSum: columns?.sumWithVatColumn.values[i + 1],
|
||||
piColumn: columns?.piColumn.values[i + 1],
|
||||
redemptionAmount: columns?.sumRepaymentColumn.values[i + 1],
|
||||
paymentSum: columns?.sumWithVatColumn.values[i + 1] || 0,
|
||||
piColumn: columns?.piColumn.values[i + 1] || 0,
|
||||
redemptionAmount: columns?.sumRepaymentColumn.values[i + 1] || 0,
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user