Skip to content

Commit b0cd7e8

Browse files
committed
Modify stock display logic in card.php
Updated stock display logic to show potential kit stock directly.
1 parent a6a0a34 commit b0cd7e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

htdocs/product/composition/card.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@
815815
print '<td></td><td></td><td></td>';
816816
print '<td colspan="' . ($colspan_counter) . '" class="titlefield">' . $langs->trans("PotentialKitsFromStock") . '</td>';
817817
// Calculate the value to display. If $potential_kit_stock is null or 0, show 0.
818-
$stock_to_display = ($potential_kit_stock !== null && $potential_kit_stock > 0) ? $potential_kit_stock : 0;
818+
$stock_to_display = $potential_kit_stock;
819819
print '<td class="total-value">' . price($stock_to_display) . '</td>';
820820
print '</tr>';
821821
print '<td class="liste_total right">&nbsp;</td>';

0 commit comments

Comments
 (0)