diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php
index b8906bd1038..a51ef902eb6 100644
--- a/htdocs/comm/card.php
+++ b/htdocs/comm/card.php
@@ -175,7 +175,7 @@ if (empty($reshook))
$result=$object->update($object->id, $user);
if ($result < 0) setEventMessages($object->error, $object->errors, 'errors');
}
-
+
if ($action == 'update_extras') {
$object->fetch($id);
@@ -262,21 +262,23 @@ if ($id > 0)
print '';
}
- // Assujeti a TVA ou pas
+ // VAT is used
print '
';
- print '| '.$langs->trans('VATIsUsed').' | ';
+ print ' | '.$langs->trans('VATIsUsed').' | ';
+ print '';
print yn($object->tva_assuj);
print ' | ';
print '
';
// Local Taxes
- if ($mysoc->useLocalTax(1))
+ // TODO Move this on same record than VATIsUsed
+ if ($mysoc->localtax1_assuj=="1")
{
print '| '.$langs->transcountry("LocalTax1IsUsed", $mysoc->country_code).' | ';
print yn($object->localtax1_assuj);
print ' |
';
}
- if ($mysoc->useLocalTax(2))
+ if ($mysoc->localtax1_assuj=="1")
{
print '| '.$langs->transcountry("LocalTax2IsUsed", $mysoc->country_code).' | ';
print yn($object->localtax2_assuj);
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index b5afba996b8..46e6366bba1 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1766,8 +1766,9 @@ else
$formcompany->select_localtax(1,$object->localtax1_value, "lt1");
print '';
}
+ print ' | ';
- print ''.fieldLabel($langs->transcountry("LocalTax2IsUsed",$mysoc->country_code),'localtax2assuj_value').' | ';
+ print ' | '.fieldLabel($langs->transcountry("LocalTax2IsUsed",$mysoc->country_code),'localtax2assuj_value').' | ';
print $form->selectyesno('localtax2assuj_value',$object->localtax2_assuj,1);
if (! isOnlyOneLocalTax(2))
{
|