Fix: don't show tva with rate 0

This commit is contained in:
Regis Houssin 2011-04-12 10:29:39 +00:00
parent 638ad5abcf
commit 6633478149
7 changed files with 8 additions and 8 deletions

View File

@ -596,7 +596,7 @@ class pdf_einstein extends ModelePDFCommandes
{
foreach( $this->tva as $tvakey => $tvaval )
{
if ($tvakey) // On affiche pas taux 0
if ($tvakey > 0) // On affiche pas taux 0
{
$this->atleastoneratenotnull++;

View File

@ -722,7 +722,7 @@ class pdf_crabe extends ModelePDFFactures
{
foreach( $this->tva as $tvakey => $tvaval )
{
if ($tvakey) // On affiche pas taux 0
if ($tvakey > 0) // On affiche pas taux 0
{
$this->atleastoneratenotnull++;

View File

@ -619,7 +619,7 @@ class pdf_oursin extends ModelePDFFactures
{
foreach( $this->tva as $tvakey => $tvaval )
{
if ($tvakey) // On affiche pas taux 0
if ($tvakey > 0) // On affiche pas taux 0
{
$this->atleastoneratenotnull++;

View File

@ -607,7 +607,7 @@ class pdf_propale_azur extends ModelePDFPropales
{
foreach( $this->tva as $tvakey => $tvaval )
{
if ($tvakey) // On affiche pas taux 0
if ($tvakey > 0) // On affiche pas taux 0
{
$this->atleastoneratenotnull++;

View File

@ -421,7 +421,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
foreach( $this->tva as $tvakey => $tvaval )
{
if ($tvakey) // On affiche pas taux 0
if ($tvakey > 0) // On affiche pas taux 0
{
$this->atleastoneratenotnull++;

View File

@ -423,7 +423,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
foreach( $this->tva as $tvakey => $tvaval )
{
if ($tvakey) // On affiche pas taux 0
if ($tvakey > 0) // On affiche pas taux 0
{
$this->atleastoneratenotnull++;

View File

@ -657,7 +657,7 @@ function pdf_writelinedesc(&$pdf,$object,$i,$outputlangs,$w,$h,$posx,$posy,$hide
{
if (empty($object->lines[$i]->fk_parent_line))
{
return $object->hooks[$object->lines[$i]->special_code]->pdf_writelinedesc($pdf,$object,$i,$outputlangs,$w,$h,$posx,$posy);
return $object->hooks[$object->lines[$i]->special_code]->pdf_writelinedesc($pdf,$object,$i,$outputlangs,$w,$h,$posx,$posy,$hideref,$hidedesc,$issupplierline);
}
}
else
@ -956,7 +956,7 @@ function pdf_getlinetotalexcltax($object,$i,$outputlangs)
{
if (empty($object->lines[$i]->fk_parent_line))
{
// TODO add hook function
return $object->hooks[$object->lines[$i]->special_code]->pdf_getlinetotalexcltax($object,$i,$outputlangs);
}
}
else