@@ -95,9 +95,9 @@ |
||
| 95 | 95 | $aInvoiceList = $oOrder->getInvoiceCollection()->getItems(); |
| 96 | 96 | if ($oInvoice = array_shift($aInvoiceList)) { // get first invoice |
| 97 | 97 | $oInvoice->pay(); // mark invoice as paid |
| 98 | - $oInvoice->save(); |
|
| 98 | + $oInvoice->save(); |
|
| 99 | 99 | |
| 100 | - $oOrder->save(); |
|
| 101 | - } |
|
| 100 | + $oOrder->save(); |
|
| 101 | + } |
|
| 102 | 102 | } |
| 103 | 103 | } |