Fix: view remise percent (negative or positive)

This commit is contained in:
Regis Houssin 2009-12-10 12:20:52 +00:00
parent 4f8f39f71b
commit 73f6abdeca
3 changed files with 9 additions and 3 deletions

View File

@ -1449,8 +1449,8 @@ if ($id > 0 || ! empty($ref))
else print ' ';
print '</td>';
// Remise %
if ($objp->remise_percent > 0 && $objp->special_code != 3)
// Remise percent (negative or positive)
if (!empty($objp->remise_percent) && $objp->special_code != 3)
{
print '<td align="right">'.dol_print_reduction($objp->remise_percent,$langs)."</td>\n";
}

View File

@ -1657,7 +1657,9 @@ else
}
else print '&nbsp;';
print '</td>';
if ($objp->remise_percent > 0)
//Remise percent (negative or positive)
if (!empty($objp->remise_percent))
{
print '<td align="right">'.dol_print_reduction($objp->remise_percent,$langs).'</td>';
}
@ -1665,6 +1667,8 @@ else
{
print '<td>&nbsp;</td>';
}
// Montant total HT
print '<td align="right" nowrap="nowrap">'.price($objp->total_ht).'</td>';
// Icone d'edition et suppression

View File

@ -2869,6 +2869,8 @@ else
{
print '<td>&nbsp;</td>';
}
// Montant total HT
print '<td align="right">'.price($objp->total_ht)."</td>\n";
// Icone d'edition et suppression