@@ -620,9 +620,13 @@ discard block |
||
620 | 620 | |
621 | 621 | if( empty( $item->getInvoiceNumber() ) && $item->getStatusPayment() >= \Aimeos\MShop\Order\Item\Base::PAY_PENDING ) |
622 | 622 | { |
623 | - try { |
|
623 | + try |
|
624 | + { |
|
624 | 625 | $item->setInvoiceNumber( $this->createInvoiceNumber( $item ) ); |
625 | - } catch( \Exception $e ) { // redo on transaction deadlock |
|
626 | + } |
|
627 | + catch( \Exception $e ) |
|
628 | + { |
|
629 | +// redo on transaction deadlock |
|
626 | 630 | $item->setInvoiceNumber( $this->createInvoiceNumber( $item ) ); |
627 | 631 | } |
628 | 632 | } |
@@ -673,8 +677,7 @@ discard block |
||
673 | 677 | */ |
674 | 678 | $path = 'mshop/order/manager/insert'; |
675 | 679 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
676 | - } |
|
677 | - else |
|
680 | + } else |
|
678 | 681 | { |
679 | 682 | /** mshop/order/manager/update/mysql |
680 | 683 | * Updates an existing order record in the database |