There was an error while loading. Please reload this page.
1 parent b0cd7e8 commit 19a7afbCopy full SHA for 19a7afb
1 file changed
htdocs/product/composition/card.php
@@ -687,7 +687,7 @@
687
// Calculate how many full kits this component can support.
688
$possible_with_this = floor($value['stock'] / $value['nb']);
689
// Keep the smallest value across all components (the limiting factor).
690
- if ($potential_kit_stock === null || $possible_with_this < $potential_kit_stock) {
+ if ($potential_kit_stock === 0 || $possible_with_this < $potential_kit_stock) {
691
$potential_kit_stock = $possible_with_this;
692
}
693
} else {
0 commit comments