diff --git a/process/payments/reactions.ts b/process/payments/reactions.ts index 3feaa30..f95a859 100644 --- a/process/payments/reactions.ts +++ b/process/payments/reactions.ts @@ -438,7 +438,7 @@ export default function paymentsReactions( ); const rows: Row[] = payments.map((value, i) => ({ value, - status: i < seasonsConstants.SEASONS_PERIOD_NUMBER ? 'Default' : 'Disabled', + status: seasonsConstants.SEASONS_PERIODS[seasonType].includes(i) ? 'Default' : 'Disabled', })); const firstPaymentPerc = $calculation.getElementValue('tbxFirstPaymentPerc'); const lastPaymentPerc = $calculation.getElementValue('tbxLastPaymentPerc'); @@ -494,7 +494,7 @@ export default function paymentsReactions( const rows: Row[] = payments.map((value, i) => ({ value, - status: i < seasonsConstants.SEASONS_PERIOD_NUMBER ? 'Default' : 'Disabled', + status: seasonsConstants.SEASONS_PERIODS[seasonType].includes(i) ? 'Default' : 'Disabled', })); const firstPaymentPerc = $calculation.getElementValue('tbxFirstPaymentPerc'); const lastPaymentPerc = $calculation.getElementValue('tbxLastPaymentPerc');