Skip to content

Commit 6a0f941

Browse files
authored
Merge pull request #491 from topcoder-platform/featuer/fix-additional-payment-derivative-status
[DEV] fix WP status when only have additional payments
2 parents aa470aa + 0e0227a commit 6a0f941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app-constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ const WorkPeriodPaymentStatus = {
113113
* The top rule has priority over the bottom rules.
114114
*/
115115
const PaymentStatusRules = [
116-
{ paymentStatus: AggregatePaymentStatus.NO_DAYS, condition: { daysWorked: 0 } },
117116
{ paymentStatus: AggregatePaymentStatus.IN_PROGRESS, condition: { hasWorkPeriodPaymentStatus: [WorkPeriodPaymentStatus.SCHEDULED, WorkPeriodPaymentStatus.IN_PROGRESS] } },
118117
{ paymentStatus: AggregatePaymentStatus.COMPLETED, condition: { hasWorkPeriodPaymentStatus: [WorkPeriodPaymentStatus.COMPLETED], hasDueDays: false } },
119118
{ paymentStatus: AggregatePaymentStatus.PARTIALLY_COMPLETED, condition: { hasWorkPeriodPaymentStatus: [WorkPeriodPaymentStatus.COMPLETED], hasDueDays: true } },
120-
{ paymentStatus: AggregatePaymentStatus.PENDING, condition: { hasDueDays: true } }
119+
{ paymentStatus: AggregatePaymentStatus.PENDING, condition: { hasDueDays: true } },
120+
{ paymentStatus: AggregatePaymentStatus.NO_DAYS, condition: { daysWorked: 0 } }
121121
]
122122

123123
/**

0 commit comments

Comments
 (0)