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

is Spain
This commit is contained in:
simnandez 2013-01-05 09:47:54 +01:00
parent 32b19802b1
commit c639d80372

View File

@ -1069,12 +1069,12 @@ if (! empty($object->id))
if ($mysoc->country_code=='ES')
{
if($mysoc->localtax1_assuj=="1") $nbrow++;
if($mysoc->localtax2_assuj=="1") $nbrow++;
if($object->thirdparty->localtax2_assuj=="1") $nbrow++;
}
else
{
if($mysoc->localtax1_assuj=="1") $nbrow++;
if($object->thirdparty->localtax2_assuj=="1") $nbrow++;
if($mysoc->localtax2_assuj=="1") $nbrow++;
}
print '<table class="border" width="100%">';