Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
fix for 144 (#145)
Browse files Browse the repository at this point in the history
Signed-off-by: awjh-ibm <andrew.hurt1@ibm.com>
  • Loading branch information
awjh-ibm committed Jun 1, 2018
1 parent 44a58e0 commit 5c1f0fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
Expand Up @@ -181,11 +181,8 @@ class LetterOfCredit extends Component {
"$class": "org.example.loc.ProductDetails",
"productType": type,
"quantity": quantity,
"pricePerUnit": price.toFixed(2),
"id": "string"
},
"transactionId": "",
"timestamp": "2018-03-13T11:35:00.218Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
"pricePerUnit": price.toFixed(2)
}
})
.then(() => {
this.setState({
Expand Down Expand Up @@ -219,9 +216,7 @@ class LetterOfCredit extends Component {
axios.post(this.config.restServer.httpURL+'/Approve', {
"$class": "org.example.loc.Approve",
"loc": letter,
"approvingParty": resourceURL+approvingParty,
"transactionId": "",
"timestamp": "2018-03-13T11:25:08.043Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
"approvingParty": resourceURL+approvingParty
})
.then(() => {
this.setState({
Expand All @@ -243,9 +238,7 @@ class LetterOfCredit extends Component {
axios.post(this.config.restServer.httpURL+'/Reject', {
"$class": "org.example.loc.Reject",
"loc": letter,
"closeReason": "Letter has been rejected",
"transactionId": "",
"timestamp": "2018-03-13T11:35:00.281Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
"closeReason": "Letter has been rejected"
})
.then(() => {
this.setState({
Expand All @@ -265,10 +258,7 @@ class LetterOfCredit extends Component {
let letter = "resource:org.example.loc.LetterOfCredit#" + letterId;
axios.post(this.config.restServer.httpURL+'/ReadyForPayment', {
"$class" : "org.example.loc.ReadyForPayment",
"loc": letter,
'beneficiary': "resource:org.example.loc.Customer#bob",
"transactionId": "",
"timestamp": "2018-03-13T11:35:00.281Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
"loc": letter
})
.then(() => {
this.setState({
Expand All @@ -289,9 +279,7 @@ class LetterOfCredit extends Component {
axios.post(this.config.restServer.httpURL+'/Close', {
"$class": "org.example.loc.Close",
"loc": letter,
"closeReason": "Letter has been completed.",
"transactionId": "",
"timestamp": "2018-03-13T11:35:00.139Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
"closeReason": "Letter has been completed."
})
.then(() => {
this.setState({
Expand Down
Expand Up @@ -162,7 +162,7 @@ class LoCCard extends Component {
);
}
} else {
if (letter.status !== 'AWAITING_APPROVAL' && letter.status !== 'APPROVED') {
if (letter.status !== 'AWAITING_APPROVAL' && letter.status !== 'APPROVED' && letter.status !== 'REJECTED') {
// generating a hash from the timestamp
shippingText = "Receive Product";
if (letter.status !== 'SHIPPED') {
Expand Down

0 comments on commit 5c1f0fd

Please sign in to comment.