Fix: [ bug #662 ] Bad aplication of Localtax2 for suppliers if country

is Spain
This commit is contained in:
simnandez 2013-01-08 08:46:48 +01:00
parent f96c1d83cb
commit 596df78d39
3 changed files with 48 additions and 20 deletions

View File

@ -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++;

View File

@ -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++;

View File

@ -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++;