|
|
@@ -182,10 +182,11 @@ class ProductController extends BackendController |
|
|
|
} |
|
|
|
|
|
|
|
$this->processAvailabilityPointsSale($model); |
|
|
|
$productModule->getBuilder()->update($model); |
|
|
|
|
|
|
|
if ($model->apply_distributions) { |
|
|
|
$distributionModule->addProductIncomingDistributions($model); |
|
|
|
} |
|
|
|
$productModule->update($model); |
|
|
|
|
|
|
|
$this->setFlash('success', 'Produit <strong>' . Html::encode($model->name) . '</strong> modifié'); |
|
|
|
|
|
|
@@ -360,7 +361,7 @@ class ProductController extends BackendController |
|
|
|
$product->status = (int) $status; |
|
|
|
$product->save(); |
|
|
|
|
|
|
|
$distributionModule->addProductIncomingDistributions($product); |
|
|
|
$distributionModule->getBuilder()->addProductIncomingDistributions($product); |
|
|
|
|
|
|
|
return ['success', 'id' => $id, 'status' => $status]; |
|
|
|
} |