Merge pull request #581 from simnandez/3.3
Fix: [ bug #662 ] Bad aplication of Localtax2 for suppliers if country is Spain
This commit is contained in:
commit
1555bb681c
@ -728,12 +728,17 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
case '3':
|
case '3':
|
||||||
case '5':
|
case '5':
|
||||||
case '7':
|
case '7':
|
||||||
|
//TODO: Place into a function to control showing by country or study better option
|
||||||
|
if($mysoc->country_code!='ES')
|
||||||
|
{
|
||||||
continue 2;
|
continue 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||||
{
|
{
|
||||||
if ($tvakey>0) // On affiche pas taux 0
|
if ($tvakey!=0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
//$this->atleastoneratenotnull++;
|
//$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
@ -765,12 +770,17 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
case '3':
|
case '3':
|
||||||
case '5':
|
case '5':
|
||||||
case '7':
|
case '7':
|
||||||
|
//TODO: Place into a function to control showing by country or study better option
|
||||||
|
if($mysoc->country_code!='ES')
|
||||||
|
{
|
||||||
continue 2;
|
continue 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||||
{
|
{
|
||||||
if ($tvakey>0) // On affiche pas taux 0
|
if ($tvakey!=0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
//$this->atleastoneratenotnull++;
|
//$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
|
|||||||
@ -858,12 +858,16 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
case '3':
|
case '3':
|
||||||
case '5':
|
case '5':
|
||||||
case '7':
|
case '7':
|
||||||
|
//TODO: Place into a function to control showing by country or study better option
|
||||||
|
if($mysoc->country_code!='ES')
|
||||||
|
{
|
||||||
continue 2;
|
continue 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||||
{
|
{
|
||||||
if ($tvakey>0) // On affiche pas taux 0
|
if ($tvakey!=0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
//$this->atleastoneratenotnull++;
|
//$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
@ -895,12 +899,16 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
case '3':
|
case '3':
|
||||||
case '5':
|
case '5':
|
||||||
case '7':
|
case '7':
|
||||||
|
//TODO: Place into a function to control showing by country or study better option
|
||||||
|
if($mysoc->country_code!='ES')
|
||||||
|
{
|
||||||
continue 2;
|
continue 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||||
{
|
{
|
||||||
if ($tvakey>0) // On affiche pas taux 0
|
if ($tvakey!=0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
//$this->atleastoneratenotnull++;
|
//$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
|
|||||||
@ -761,12 +761,17 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
case '3':
|
case '3':
|
||||||
case '5':
|
case '5':
|
||||||
case '7':
|
case '7':
|
||||||
|
//TODO: Place into a function to control showing by country or study better option
|
||||||
|
if($mysoc->country_code!='ES')
|
||||||
|
{
|
||||||
continue 2;
|
continue 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
foreach( $localtax_rate as $tvakey => $tvaval )
|
||||||
{
|
{
|
||||||
if ($tvakey>0) // On affiche pas taux 0
|
if ($tvakey!=0) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
//$this->atleastoneratenotnull++;
|
//$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
@ -798,12 +803,17 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
case '3':
|
case '3':
|
||||||
case '5':
|
case '5':
|
||||||
case '7':
|
case '7':
|
||||||
|
//TODO: Place into a function to control showing by country or study better option
|
||||||
|
if($mysoc->country_code!='ES')
|
||||||
|
{
|
||||||
continue 2;
|
continue 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
foreach( $localtax_rate as $tvakey => $tvaval )
|
foreach( $localtax_rate 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