File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1356,9 +1356,6 @@ protected function saveInvoice()
1356
1356
1357
1357
$ this ->logging ->addDebug (__METHOD__ . '|20| ' );
1358
1358
1359
- $ this ->order ->setIsInProcess (true );
1360
- $ this ->order ->save ();
1361
-
1362
1359
$ transactionKey = $ this ->getTransactionKey ();
1363
1360
1364
1361
if (strlen ($ transactionKey ) <= 0 ) {
@@ -1373,6 +1370,9 @@ protected function saveInvoice()
1373
1370
1374
1371
if (!empty ($ this ->postData ['brq_invoicenumber ' ])) {
1375
1372
if ($ this ->groupTransaction ->isGroupTransaction ($ this ->postData ['brq_invoicenumber ' ])) {
1373
+
1374
+ $ this ->logging ->addDebug (__METHOD__ . '|27| ' );
1375
+
1376
1376
$ invoice ->setGrandTotal ($ invoice ->getGrandTotal () + $ this ->order ->getBuckarooAlreadyPaid ());
1377
1377
$ invoice ->setBaseGrandTotal ($ invoice ->getBaseGrandTotal () + $ this ->order ->getBaseBuckarooAlreadyPaid ());
1378
1378
$ invoice ->setState (2 );
@@ -1387,6 +1387,11 @@ protected function saveInvoice()
1387
1387
}
1388
1388
}
1389
1389
1390
+ $ this ->logging ->addDebug (__METHOD__ . '|35| ' );
1391
+
1392
+ $ this ->order ->setIsInProcess (true );
1393
+ $ this ->order ->save ();
1394
+
1390
1395
$ this ->dontSaveOrderUponSuccessPush = true ;
1391
1396
1392
1397
return true ;
You can’t perform that action at this time.
0 commit comments