@@ -138,9 +138,12 @@ |
||
138 | 138 | { |
139 | 139 | foreach( $data['customer/group'] as $entry ) |
140 | 140 | { |
141 | - try { |
|
141 | + try |
|
142 | + { |
|
142 | 143 | $groupManager->save( $groupManager->find( $entry['customer.group.code'] )->fromArray( $entry ) ); |
143 | - } catch( \Exception $e ) { |
|
144 | + } |
|
145 | + catch( \Exception $e ) |
|
146 | + { |
|
144 | 147 | $groupManager->save( $groupManager->create()->fromArray( $entry ), false ); |
145 | 148 | } |
146 | 149 | } |
@@ -344,7 +344,8 @@ |
||
344 | 344 | { |
345 | 345 | $stockManager->decrease( [$item->getProductId() => -1 * $how * $item->getQuantity()], $item->getStockType() ); |
346 | 346 | |
347 | - switch( $item->getType() ) { |
|
347 | + switch( $item->getType() ) |
|
348 | + { |
|
348 | 349 | case 'default': |
349 | 350 | $this->updateStockBundle( $item->getParentProductId(), $item->getStockType() ); break; |
350 | 351 | case 'select': |