Fix: [ bug #662 ] Bad aplication of Localtax2 for suppliers if country
is Spain
This commit is contained in:
parent
f96c1d83cb
commit
596df78d39
@ -728,12 +728,17 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
case '3':
|
||||
case '5':
|
||||
case '7':
|
||||
continue 2;
|
||||
break;
|
||||
//TODO: Place into a function to control showing by country or study better option
|
||||
if($mysoc->country_code!='ES')
|
||||
{
|
||||
continue 2;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||
{
|
||||
if ($tvakey>0) // On affiche pas taux 0
|
||||
if ($tvakey!=0) // On affiche pas taux 0
|
||||
{
|
||||
//$this->atleastoneratenotnull++;
|
||||
|
||||
@ -764,13 +769,18 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
case '1':
|
||||
case '3':
|
||||
case '5':
|
||||
case '7':
|
||||
continue 2;
|
||||
break;
|
||||
case '7':
|
||||
//TODO: Place into a function to control showing by country or study better option
|
||||
if($mysoc->country_code!='ES')
|
||||
{
|
||||
continue 2;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||
{
|
||||
if ($tvakey>0) // On affiche pas taux 0
|
||||
if ($tvakey!=0) // On affiche pas taux 0
|
||||
{
|
||||
//$this->atleastoneratenotnull++;
|
||||
|
||||
|
||||
@ -858,12 +858,16 @@ class pdf_crabe extends ModelePDFFactures
|
||||
case '3':
|
||||
case '5':
|
||||
case '7':
|
||||
continue 2;
|
||||
break;
|
||||
}
|
||||
//TODO: Place into a function to control showing by country or study better option
|
||||
if($mysoc->country_code!='ES')
|
||||
{
|
||||
continue 2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||
{
|
||||
if ($tvakey>0) // On affiche pas taux 0
|
||||
if ($tvakey!=0) // On affiche pas taux 0
|
||||
{
|
||||
//$this->atleastoneratenotnull++;
|
||||
|
||||
@ -895,12 +899,16 @@ class pdf_crabe extends ModelePDFFactures
|
||||
case '3':
|
||||
case '5':
|
||||
case '7':
|
||||
continue 2;
|
||||
break;
|
||||
//TODO: Place into a function to control showing by country or study better option
|
||||
if($mysoc->country_code!='ES')
|
||||
{
|
||||
continue 2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||
{
|
||||
if ($tvakey>0) // On affiche pas taux 0
|
||||
if ($tvakey!=0) // On affiche pas taux 0
|
||||
{
|
||||
//$this->atleastoneratenotnull++;
|
||||
|
||||
|
||||
@ -761,12 +761,17 @@ class pdf_azur extends ModelePDFPropales
|
||||
case '3':
|
||||
case '5':
|
||||
case '7':
|
||||
continue 2;
|
||||
break;
|
||||
//TODO: Place into a function to control showing by country or study better option
|
||||
if($mysoc->country_code!='ES')
|
||||
{
|
||||
continue 2;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||
{
|
||||
if ($tvakey>0) // On affiche pas taux 0
|
||||
if ($tvakey!=0) // On affiche pas taux 0
|
||||
{
|
||||
//$this->atleastoneratenotnull++;
|
||||
|
||||
@ -798,12 +803,17 @@ class pdf_azur extends ModelePDFPropales
|
||||
case '3':
|
||||
case '5':
|
||||
case '7':
|
||||
continue 2;
|
||||
break;
|
||||
//TODO: Place into a function to control showing by country or study better option
|
||||
if($mysoc->country_code!='ES')
|
||||
{
|
||||
continue 2;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||
{
|
||||
if ($tvakey>0) // On affiche pas taux 0
|
||||
if ($tvakey!=0) // On affiche pas taux 0
|
||||
{
|
||||
//$this->atleastoneratenotnull++;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user