fix prev commit
This commit is contained in:
parent
ca8d060851
commit
333fcbd8b4
@ -436,9 +436,12 @@ export default function paymentsReactions(
|
||||
leasingPeriod,
|
||||
shift(seasons, shiftNumber)
|
||||
);
|
||||
const shiftedPeriods = new Set(
|
||||
seasonsConstants.SEASONS_PERIODS[seasonType].map((x) => x + shiftNumber)
|
||||
);
|
||||
const rows: Row[] = payments.map((value, i) => ({
|
||||
value,
|
||||
status: seasonsConstants.SEASONS_PERIODS[seasonType].includes(i) ? 'Default' : 'Disabled',
|
||||
status: shiftedPeriods.has(i) ? 'Default' : 'Disabled',
|
||||
}));
|
||||
const firstPaymentPerc = $calculation.getElementValue('tbxFirstPaymentPerc');
|
||||
const lastPaymentPerc = $calculation.getElementValue('tbxLastPaymentPerc');
|
||||
@ -491,10 +494,12 @@ export default function paymentsReactions(
|
||||
leasingPeriod,
|
||||
shift(seasons, shiftNumber)
|
||||
);
|
||||
|
||||
const shiftedPeriods = new Set(
|
||||
seasonsConstants.SEASONS_PERIODS[seasonType].map((x) => x + shiftNumber)
|
||||
);
|
||||
const rows: Row[] = payments.map((value, i) => ({
|
||||
value,
|
||||
status: seasonsConstants.SEASONS_PERIODS[seasonType].includes(i) ? 'Default' : 'Disabled',
|
||||
status: shiftedPeriods.has(i) ? 'Default' : 'Disabled',
|
||||
}));
|
||||
const firstPaymentPerc = $calculation.getElementValue('tbxFirstPaymentPerc');
|
||||
const lastPaymentPerc = $calculation.getElementValue('tbxLastPaymentPerc');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user