diff --git a/app-constants.js b/app-constants.js index 78bab1f3..3e4811b8 100644 --- a/app-constants.js +++ b/app-constants.js @@ -113,11 +113,11 @@ const WorkPeriodPaymentStatus = { * The top rule has priority over the bottom rules. */ const PaymentStatusRules = [ - { paymentStatus: AggregatePaymentStatus.NO_DAYS, condition: { daysWorked: 0 } }, { paymentStatus: AggregatePaymentStatus.IN_PROGRESS, condition: { hasWorkPeriodPaymentStatus: [WorkPeriodPaymentStatus.SCHEDULED, WorkPeriodPaymentStatus.IN_PROGRESS] } }, { paymentStatus: AggregatePaymentStatus.COMPLETED, condition: { hasWorkPeriodPaymentStatus: [WorkPeriodPaymentStatus.COMPLETED], hasDueDays: false } }, { paymentStatus: AggregatePaymentStatus.PARTIALLY_COMPLETED, condition: { hasWorkPeriodPaymentStatus: [WorkPeriodPaymentStatus.COMPLETED], hasDueDays: true } }, - { paymentStatus: AggregatePaymentStatus.PENDING, condition: { hasDueDays: true } } + { paymentStatus: AggregatePaymentStatus.PENDING, condition: { hasDueDays: true } }, + { paymentStatus: AggregatePaymentStatus.NO_DAYS, condition: { daysWorked: 0 } } ] /**