Skip to content

Commit

Permalink
Merge pull request #136 from andrefatchip/OX6-41
Browse files Browse the repository at this point in the history
OX6-41: Added softer obstical for recovering an order by receiving pa…
  • Loading branch information
T-Kuchel authored Mar 3, 2020
2 parents e66bda5 + 85cbecb commit ec04e8b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion status.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,21 @@ public function handle()
oxDb::getDb()->Execute($query);
}
if($this->fcGetPostParam('txaction') == 'paid') {
$query = "UPDATE oxorder SET oxfolder = 'ORDERFOLDER_NEW', oxtransstatus = 'OK' WHERE oxid = '{$sOrderId}' AND oxtransstatus = 'INCOMPLETE' AND oxfolder = 'ORDERFOLDER_PROBLEMS'";
$oLang = oxNew('oxLang');
$sReplacement = $oLang->translateString('FCPO_REMARK_APPOINTED_MISSING');

$query = "
UPDATE
oxorder
SET
oxfolder = 'ORDERFOLDER_NEW',
oxtransstatus = 'OK',
oxremark = REPLACE(oxremark, '".$sReplacement."', '')
WHERE
oxid = '{$sOrderId}' AND
oxtransstatus IN ('INCOMPLETE', 'ERROR') AND
oxfolder = 'ORDERFOLDER_PROBLEMS'
";
oxDb::getDb()->Execute($query);
}

Expand Down

0 comments on commit ec04e8b

Please sign in to comment.