File tree Expand file tree Collapse file tree 4 files changed +5
-1
lines changed
apps/admin/src/billing-account/BillingAccountNewPage Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import _ from 'lodash'
14
14
import classNames from 'classnames'
15
15
import moment from 'moment'
16
16
17
+ import { EnvironmentConfig } from '~/config'
17
18
import {
18
19
Button ,
19
20
InputDatePicker ,
@@ -133,7 +134,7 @@ export const BillingAccountNewPage: FC<Props> = (props: Props) => {
133
134
name : billingAccount . name ,
134
135
paymentTerms : billingAccount . paymentTerms
135
136
? parseInt ( billingAccount . paymentTerms , 10 ) ?? 0
136
- : undefined ,
137
+ : EnvironmentConfig . ADMIN . DEFAULT_PAYMENT_TERMS ,
137
138
poNumber : billingAccount . poNumber ,
138
139
salesTax : billingAccount . salesTax ,
139
140
startDate : billingAccount . startDate ,
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export const ADMIN = {
80
80
AV_SCAN_SCORER_REVIEW_TYPE_ID : '68c5a381-c8ab-48af-92a7-7a869a4ee6c3' ,
81
81
CHALLENGE_URL : 'https://www.topcoder-dev.com/challenges' ,
82
82
CONNECT_URL : 'https://connect.topcoder-dev.com' ,
83
+ DEFAULT_PAYMENT_TERMS : 1 ,
83
84
DIRECT_URL : 'https://www.topcoder-dev.com/direct' ,
84
85
ONLINE_REVIEW_URL : 'https://software.topcoder-dev.com/review' ,
85
86
WORK_MANAGER_URL : 'https://challenges.topcoder-dev.com' ,
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export interface GlobalConfig {
45
45
} ,
46
46
ADMIN : {
47
47
CONNECT_URL : string
48
+ DEFAULT_PAYMENT_TERMS : number
48
49
DIRECT_URL : string
49
50
WORK_MANAGER_URL : string
50
51
ONLINE_REVIEW_URL : string
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export const ADMIN = {
10
10
AV_SCAN_SCORER_REVIEW_TYPE_ID : '55bbb17d-aac2-45a6-89c3-a8d102863d05' ,
11
11
CHALLENGE_URL : 'https://www.topcoder.com/challenges' ,
12
12
CONNECT_URL : 'https://connect.topcoder.com' ,
13
+ DEFAULT_PAYMENT_TERMS : 1 ,
13
14
DIRECT_URL : 'https://www.topcoder.com/direct' ,
14
15
ONLINE_REVIEW_URL : 'https://software.topcoder.com/review' ,
15
16
WORK_MANAGER_URL : 'https://challenges.topcoder.com' ,
You can’t perform that action at this time.
0 commit comments