From 0e0227a7069331c6346fbe204ed1f6b123ec5a12 Mon Sep 17 00:00:00 2001 From: Maksym Mykhailenko Date: Sat, 14 Aug 2021 16:39:17 +0300 Subject: [PATCH] fix WP status when only have additional payments --- app-constants.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } ] /**