FIX VAT rate can be negative. Example spain selling to morroco.
This commit is contained in:
parent
08c5fd2e36
commit
aa7eb4935c
@ -922,7 +922,7 @@ class pdf_aurore extends ModelePDFAskPriceSupplier
|
|||||||
// VAT
|
// VAT
|
||||||
foreach($this->tva as $tvakey => $tvaval)
|
foreach($this->tva as $tvakey => $tvaval)
|
||||||
{
|
{
|
||||||
if ($tvakey > 0) // On affiche pas taux 0
|
if ($tvakey != 0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
$this->atleastoneratenotnull++;
|
$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
|
|||||||
@ -911,7 +911,7 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
// VAT
|
// VAT
|
||||||
foreach($this->tva as $tvakey => $tvaval)
|
foreach($this->tva as $tvakey => $tvaval)
|
||||||
{
|
{
|
||||||
if ($tvakey > 0) // On affiche pas taux 0
|
if ($tvakey != 0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
$this->atleastoneratenotnull++;
|
$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
|
|||||||
@ -818,7 +818,7 @@ class pdf_proforma extends ModelePDFCommandes
|
|||||||
// VAT
|
// VAT
|
||||||
foreach($this->tva as $tvakey => $tvaval)
|
foreach($this->tva as $tvakey => $tvaval)
|
||||||
{
|
{
|
||||||
if ($tvakey > 0) // On affiche pas taux 0
|
if ($tvakey != 0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
$this->atleastoneratenotnull++;
|
$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
|
|||||||
@ -1107,7 +1107,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
// VAT
|
// VAT
|
||||||
foreach($this->tva as $tvakey => $tvaval)
|
foreach($this->tva as $tvakey => $tvaval)
|
||||||
{
|
{
|
||||||
if ($tvakey > 0) // On affiche pas taux 0
|
if ($tvakey != 0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
$this->atleastoneratenotnull++;
|
$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
|
|||||||
@ -1073,7 +1073,7 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
// VAT
|
// VAT
|
||||||
foreach($this->tva as $tvakey => $tvaval)
|
foreach($this->tva as $tvakey => $tvaval)
|
||||||
{
|
{
|
||||||
if ($tvakey > 0) // On affiche pas taux 0
|
if ($tvakey != 0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
$this->atleastoneratenotnull++;
|
$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user