Skip to content

Commit 7dd8baf

Browse files
committed
needs to use the actual ID for the sow instead of the identifier
1 parent e5c493c commit 7dd8baf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/compounds/Document/Document.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import './document.scss'
77
const Document = ({ accessToken, addClass, acceptSOW, document, request }) => {
88
const { identifier, date, documentStatusColor, documentType,
99
documentTypeColor, documentStatus, lineItems, requestIdentifier,
10-
shippingPrice, shipTo, shipFrom, subtotalPrice,
10+
shippingPrice, shipTo, shipFrom, sowID, subtotalPrice,
1111
taxAmount, terms, totalPrice } = document
1212
const [show, setShow] = useState(false)
1313
const handleClose = () => setShow(false)
@@ -45,7 +45,11 @@ const Document = ({ accessToken, addClass, acceptSOW, document, request }) => {
4545
{/* TODO: @summer-cook SOW should have submit for approval. It should also ONLY show the submit for approval when the SOW has not yet been submitted. Need to figure out a way to tell if it has been submitted or not. . */}
4646
<Dropdown.Item
4747
href='#/action-1'
48-
onClick={() => {acceptSOW({request: request, sowID: identifier, accessToken: accessToken})}}
48+
onClick={() => {acceptSOW({
49+
request: request,
50+
sowID: sowID,
51+
accessToken: accessToken,
52+
})}}
4953
>
5054
Submit for Approval
5155
</Dropdown.Item>

0 commit comments

Comments
 (0)