Skip to content

Commit 258d602

Browse files
authored
Merge pull request #145 from topcoder-platform/PM-4165_allow-editing-credited-payments
PM-4165 allow editing credited payments
2 parents 81bc0d3 + 496298a commit 258d602

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ workflows:
7575
only:
7676
- dev
7777
- engagements
78+
- PM-4165_allow-editing-credited-payments
7879
- 'build-prod':
7980
context: org-global
8081
filters:

src/api/admin/admin.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ export class AdminService {
368368
// Update payment amount if requested
369369
if (
370370
body.paymentAmount !== undefined &&
371-
(payment.payment_status === PaymentStatus.OWED ||
371+
(payment.payment_status === PaymentStatus.CREDITED ||
372+
payment.payment_status === PaymentStatus.OWED ||
372373
payment.payment_status === PaymentStatus.ON_HOLD ||
373374
payment.payment_status === PaymentStatus.ON_HOLD_ADMIN)
374375
) {
@@ -646,6 +647,7 @@ export class AdminService {
646647
version: currentVersion,
647648
payment_status: {
648649
in: [
650+
PaymentStatus.CREDITED,
649651
PaymentStatus.OWED,
650652
PaymentStatus.ON_HOLD,
651653
PaymentStatus.ON_HOLD_ADMIN,

0 commit comments

Comments
 (0)