Explorar el Código

ProcuctDistribution : correctif disableProductDistributionsIncomingByProduct()

master
Guillaume Bourgeois hace 1 año
padre
commit
229daf95bb
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      common/logic/Distribution/ProductDistribution/Service/ProductDistributionBuilder.php

+ 2
- 1
common/logic/Distribution/ProductDistribution/Service/ProductDistributionBuilder.php Ver fichero

@@ -105,9 +105,10 @@ class ProductDistributionBuilder extends AbstractBuilder
$distributionsIncomingArray = $this->distributionRepository->findDistributionsIncoming(true);
foreach($distributionsIncomingArray as $distribution) {
ProductDistribution::updateAll([
'active' => false
], [
'id_product' => $product->id,
'id_distribution' => $distribution->id,
'active' => false
]);
}
}

Cargando…
Cancelar
Guardar