@@ -364,9 +364,13 @@ |
||
| 364 | 364 | |
| 365 | 365 | if( empty( $item->getInvoiceNumber() ) && $item->getStatusPayment() >= \Aimeos\MShop\Order\Item\Base::PAY_PENDING ) |
| 366 | 366 | { |
| 367 | - try { |
|
| 367 | + try |
|
| 368 | + { |
|
| 368 | 369 | $item->setInvoiceNumber( $this->createInvoiceNumber( $item ) ); |
| 369 | - } catch( \Exception $e ) { // redo on transaction deadlock |
|
| 370 | + } |
|
| 371 | + catch( \Exception $e ) |
|
| 372 | + { |
|
| 373 | +// redo on transaction deadlock |
|
| 370 | 374 | $item->setInvoiceNumber( $this->createInvoiceNumber( $item ) ); |
| 371 | 375 | } |
| 372 | 376 | } |