Skip to content

Commit

Permalink
Added proper support for SAVE-ORDER-RESULT-NO-CHANGES and `UPDATE-O…
Browse files Browse the repository at this point in the history
…RDER-RESULT-NO-CHANGES`.
  • Loading branch information
freerk-mpluskassa committed Jul 15, 2019
1 parent b492fb3 commit c9c6ad6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Mplusqapiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -5095,6 +5095,8 @@ public function parseUpdateOrderResult($soapUpdateOrderResult) {
return true;
} else if (isset($soapUpdateOrderResult->result) and $soapUpdateOrderResult->result == 'UPDATE-ORDER-RESULT-FAILED' and $soapUpdateOrderResult->errorMessage == 'Order not saved because there were no changes in the order.') {
return true;
} else if (isset($soapUpdateOrderResult->result) and $soapUpdateOrderResult->result == 'UPDATE-ORDER-RESULT-NO-CHANGES') {
return true;
} else {
if ( ! empty($soapUpdateOrderResult->errorMessage)) {
$this->lastErrorMessage = $soapUpdateOrderResult->errorMessage;
Expand Down Expand Up @@ -5145,6 +5147,8 @@ public function parseSaveOrderResult($soapSaveOrderResult)
}
} else if (isset($soapSaveOrderResult->result) and $soapSaveOrderResult->result == 'SAVE-ORDER-RESULT-FAILED' and $soapSaveOrderResult->errorMessage == 'Order not saved because there were no changes in the order.') {
return true;
} else if (isset($soapSaveOrderResult->result) and $soapSaveOrderResult->result == 'SAVE-ORDER-RESULT-NO-CHANGES') {
return true;
} else {
if ( ! empty($soapSaveOrderResult->errorMessage)) {
$this->lastErrorMessage = $soapSaveOrderResult->errorMessage;
Expand Down

0 comments on commit c9c6ad6

Please sign in to comment.