Fix: don't show tva with rate 0
This commit is contained in:
parent
638ad5abcf
commit
6633478149
@ -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++;
|
||||
|
||||
|
||||
@ -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++;
|
||||
|
||||
|
||||
@ -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++;
|
||||
|
||||
|
||||
@ -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++;
|
||||
|
||||
|
||||
@ -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++;
|
||||
|
||||
|
||||
@ -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++;
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user