@@ -5,10 +5,10 @@ import LineItemsTable from '../../components/LineItemsTable/LineItemsTable'
5
5
import './document.scss'
6
6
7
7
const Document = ( { document, addClass } ) => {
8
- const { identifier , date, documentStatusColor, documentType,
9
- documentTypeColor, documentStatus, lineItems, requestIdentifier,
8
+ const { adPO , date, documentStatusColor, documentType,
9
+ documentTypeColor, documentStatus, identifier , lineItems, poNumber , relatedSOWIdentifier , requestIdentifier,
10
10
shippingPrice, shipTo, shipFrom, subtotalPrice,
11
- taxAmount, terms, totalPrice } = document
11
+ taxAmount, terms, totalPrice, turnaroundTime } = document
12
12
const [ show , setShow ] = useState ( false )
13
13
const handleClose = ( ) => setShow ( false )
14
14
const handleShow = ( ) => setShow ( true )
@@ -52,8 +52,13 @@ const Document = ({ document, addClass }) => {
52
52
< Offcanvas . Body >
53
53
< div className = 'd-block d-md-flex justify-content-between' >
54
54
< div className = 'details' >
55
- < h6 > Details:</ h6 >
56
- < b > Proposal:</ b > { identifier } < br />
55
+ < h5 > Details:</ h5 >
56
+ { poNumber && < > < b > PO:</ b > { poNumber } < br /> </ > }
57
+ { adPO && < > < b > AD PO:</ b > { identifier } < br /> </ > }
58
+ { documentType === 'SOW' ?
59
+ < > < b > Proposal:</ b > { identifier } </ > :
60
+ < > < b > Related SOW:</ b > { relatedSOWIdentifier } </ >
61
+ } < br />
57
62
< b > Amount:</ b > { subtotalPrice } < br />
58
63
< b > Request:</ b > { requestIdentifier } < br />
59
64
< b > Date:</ b > { date } < br />
@@ -81,6 +86,7 @@ const Document = ({ document, addClass }) => {
81
86
totalPrice = { totalPrice }
82
87
/>
83
88
) }
89
+ { turnaroundTime && < > < h5 > < b > Turnaround Time:</ b > { turnaroundTime } </ h5 > </ > }
84
90
</ Offcanvas . Body >
85
91
</ Offcanvas >
86
92
</ >
0 commit comments