Fix: Revert bugged new feature that show false information.

This commit is contained in:
Laurent Destailleur 2012-10-06 23:13:46 +02:00
parent 430b63f4e1
commit 215d7a883e
2 changed files with 11 additions and 4 deletions

View File

@ -105,8 +105,12 @@
<?php } ?> <?php } ?>
<td align="right"> <td align="right">
<?php if (($line->info_bits & 2) != 2) { ?> <?php if (($line->info_bits & 2) != 2) {
<?php if($line->qty > $line->stock) print img_picto($langs->trans("StockTooLow"),"warning", 'style="vertical-align: bottom;"')." "; ?> // I comment this because it shows info even when not required
// for example always visible on invoice but must be visible only if stock module on and stock decrease option is on invoice validation and status is not validated
// must also not be output for most entities (proposal, intervention, ...)
//if($line->qty > $line->stock) print img_picto($langs->trans("StockTooLow"),"warning", 'style="vertical-align: bottom;"')." ";
?>
<input size="3" type="text" class="flat" name="qty" value="<?php echo $line->qty; ?>"> <input size="3" type="text" class="flat" name="qty" value="<?php echo $line->qty; ?>">
<?php } else { ?> <?php } else { ?>
&nbsp; &nbsp;

View File

@ -103,7 +103,10 @@
<td align="right" nowrap="nowrap"> <td align="right" nowrap="nowrap">
<?php if ((($line->info_bits & 2) != 2) && $line->special_code != 3) { <?php if ((($line->info_bits & 2) != 2) && $line->special_code != 3) {
if($line->qty > $line->stock) print img_picto($langs->trans("StockTooLow"),"warning", 'style="vertical-align: bottom;"')." "; // I comment this because it shows info even when not required
// for example always visible on invoice but must be visible only if stock module on and stock decrease option is on invoice validation and status is not validated
// must also not be output for most entities (proposal, intervention, ...)
//if($line->qty > $line->stock) print img_picto($langs->trans("StockTooLow"),"warning", 'style="vertical-align: bottom;"')." ";
echo $line->qty; echo $line->qty;
} else echo '&nbsp;'; ?> } else echo '&nbsp;'; ?>
</td> </td>