Skip to content

Commit

Permalink
More visible information on predefined invoices.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 29, 2014
1 parent faeeca5 commit bb2e843
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions htdocs/compta/facture/fiche-rec.php
Expand Up @@ -217,12 +217,15 @@
if ($num)
{
print '<tr class="liste_titre">';
print '<td width="54%">'.$langs->trans("Description").'</td>';
print '<td width="8%" align="center">'.$langs->trans("VAT").'</td>';
print '<td width="8%" align="center">'.$langs->trans("Qty").'</td>';
print '<td width="8%" align="right">'.$langs->trans("ReductionShort").'</td>';
print '<td width="12%" align="right">'.$langs->trans("PriceU").'</td>';
if (empty($conf->global->PRODUIT_MULTIPRICES)) print '<td width="12%" align="right">'.$langs->trans("CurrentProductPrice").'</td>';
print '<td>'.$langs->trans("Description").'</td>';
print '<td align="center">'.$langs->trans("VAT").'</td>';
print '<td align="center">'.$langs->trans("Qty").'</td>';
print '<td>'.$langs->trans("ReductionShort").'</td>';
print '<td align="right">'.$langs->trans("TotalHT").'</td>';
print '<td align="right">'.$langs->trans("TotalVAT").'</td>';
print '<td align="right">'.$langs->trans("TotalTTC").'</td>';
print '<td align="right">'.$langs->trans("PriceUHT").'</td>';
if (empty($conf->global->PRODUIT_MULTIPRICES)) print '<td align="right">'.$langs->trans("CurrentProductPrice").'</td>';
print "</tr>\n";
}
$var=True;
Expand Down Expand Up @@ -288,9 +291,13 @@
print "</td>\n";
}


// Vat rate
print '<td align="center">'.vatrate($objp->tva_tx).'%</td>';

// Qty
print '<td align="center">'.$objp->qty.'</td>';

// Percent
if ($objp->remise_percent > 0)
{
print '<td align="right">'.$objp->remise_percent." %</td>\n";
Expand All @@ -300,9 +307,19 @@
print '<td>&nbsp;</td>';
}

// Total HT
print '<td align="right">'.price($objp->total_ht)."</td>\n";

// Total VAT
print '<td align="right">'.price($objp->total_vat)."</td>\n";

// Total TTC
print '<td align="right">'.price($objp->total_ttc)."</td>\n";

// Total Unit price
print '<td align="right">'.price($objp->subprice)."</td>\n";

// Price of product
// Current price of product
if (empty($conf->global->PRODUIT_MULTIPRICES))
{
if ($objp->fk_product > 0)
Expand Down

0 comments on commit bb2e843

Please sign in to comment.