|
|
|
|
|
|
|
|
DistributionInterface $distribution, |
|
|
DistributionInterface $distribution, |
|
|
ProductInterface $product, |
|
|
ProductInterface $product, |
|
|
$query = null |
|
|
$query = null |
|
|
): ?string { |
|
|
|
|
|
|
|
|
): float { |
|
|
//TODO attention à vérifier |
|
|
//TODO attention à vérifier |
|
|
$query = $this->createQuery($query); |
|
|
$query = $this->createQuery($query); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($result) { |
|
|
if ($result) { |
|
|
return $result['quantity']; |
|
|
return $result['quantity']; |
|
|
} |
|
|
} |
|
|
return null; |
|
|
|
|
|
|
|
|
return 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function isReductionCreditAllowAddToOrder( |
|
|
public function isReductionCreditAllowAddToOrder( |