Fix: affichage des prix
This commit is contained in:
parent
22e59a51e1
commit
55351fd59b
@ -71,8 +71,17 @@ print '</tr>';
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Prix
|
// Prix
|
||||||
print '<tr><td>'.$langs->trans("SellingPrice").'</td><td colspan="2">'.price($product->price).'</td></tr>';
|
print '<tr><td>'.$langs->trans("SellingPrice").'</td><td colspan="2">';
|
||||||
|
if ($product->price_base_type == 'TTC')
|
||||||
|
{
|
||||||
|
print price($product->price_ttc).' '.$langs->trans($product->price_base_type);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print price($product->price).' '.$langs->trans($product->price_base_type);
|
||||||
|
}
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
// Statut
|
// Statut
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="2">';
|
||||||
|
|||||||
@ -126,13 +126,21 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$product->libelle.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Prix
|
// Prix
|
||||||
print '<tr><td>'.$langs->trans("SellingPrice").'</td><td>'.price($product->price).'</td>';
|
print '<tr><td>'.$langs->trans("SellingPrice").'</td><td colspan="2">';
|
||||||
print '</tr>';
|
if ($product->price_base_type == 'TTC')
|
||||||
|
{
|
||||||
|
print price($product->price_ttc).' '.$langs->trans($product->price_base_type);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print price($product->price).' '.$langs->trans($product->price_base_type);
|
||||||
|
}
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
// Statut
|
// Statut
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td>';
|
print '<tr><td>'.$langs->trans("Status").'</td><td>';
|
||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Stock
|
// Stock
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user