Skip to content

Commit a43243c

Browse files
authored
Merge pull request #4326 from yoution/issue-4300
fix: issue #4300
2 parents 3c5adbb + e9361c3 commit a43243c

File tree

1 file changed

+2
-1
lines changed
  • src/projects/detail/components/BillingAccountField

1 file changed

+2
-1
lines changed

src/projects/detail/components/BillingAccountField/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react'
2+
import moment from 'moment'
23
import {HOC as hoc} from 'formsy-react'
34

45
import Select from '../../../../components/Select/Select'
@@ -14,7 +15,7 @@ import styles from './styles.module.scss'
1415
* @returns {{ label: string, value: number }} option for Select
1516
*/
1617
const buildOption = (billingAccountObj) => ({
17-
label: `${billingAccountObj.name} (${billingAccountObj.tcBillingAccountId})`,
18+
label: `${billingAccountObj.name} (${billingAccountObj.tcBillingAccountId}) ${billingAccountObj.endDate ? ' - '+ moment(billingAccountObj.endDate).format('DD MMM YYYY'): ''}`,
1819
value: billingAccountObj.tcBillingAccountId
1920
})
2021

0 commit comments

Comments
 (0)