diff --git a/htdocs/societe/localtaxes.php b/htdocs/societe/localtaxes.php
index 68a2957eeb8..4471c163f44 100644
--- a/htdocs/societe/localtaxes.php
+++ b/htdocs/societe/localtaxes.php
@@ -47,17 +47,14 @@ $parameters=array('id'=>$socid);
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
$error=$hookmanager->error; $errors=array_merge($errors, (array) $hookmanager->errors);
+
/*
* View
*/
$contactstatic = new Contact($db);
-
$form = new Form($db);
-/*
- * Fiche categorie de client et/ou fournisseur
- */
if ($socid)
{
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
@@ -140,43 +137,45 @@ if ($socid)
print '
| '.$langs->trans('Phone').' | '.dol_print_phone($soc->phone,$soc->country_code,0,$soc->id,'AC_TEL').' | ';
print ''.$langs->trans('Fax').' | '.dol_print_phone($soc->fax,$soc->country_code,0,$soc->id,'AC_FAX').' |
';
-
- if($mysoc->localtax1_assuj=="1" && $mysoc->localtax2_assuj=="1")
- {
- print '| '.$langs->transcountry('LocalTax1IsUsed',$mysoc->country_code).' | ';
- print yn($soc->localtax1_assuj);
- print ' |
';
- print '| '.$langs->transcountry('LocalTax2IsUsed',$mysoc->country_code).' | ';
- print yn($soc->localtax2_assuj);
- print ' |
';
- }
- elseif($mysoc->localtax1_assuj=="1")
- {
- print '| '.$langs->transcountry('LocalTax1IsUsed',$mysoc->country_code).' | ';
- print yn($soc->localtax1_assuj);
- print ' |
';
- }
- elseif($mysoc->localtax2_assuj=="1")
- {
- print '| '.$langs->transcountry('LocalTax2IsUsed',$mysoc->country_code).' | ';
- print yn($soc->localtax2_assuj);
- print ' |
';
- }
-
-
+
+ if ($mysoc->localtax1_assuj=="1" && $mysoc->localtax2_assuj=="1")
+ {
+ print '| '.$langs->transcountry('LocalTax1IsUsed',$mysoc->country_code).' | ';
+ print yn($soc->localtax1_assuj);
+ print ' |
';
+ print '| '.$langs->transcountry('LocalTax2IsUsed',$mysoc->country_code).' | ';
+ print yn($soc->localtax2_assuj);
+ print ' |
';
+ }
+ elseif($mysoc->localtax1_assuj=="1")
+ {
+ print '| '.$langs->transcountry('LocalTax1IsUsed',$mysoc->country_code).' | ';
+ print yn($soc->localtax1_assuj);
+ print ' |
';
+ }
+ elseif($mysoc->localtax2_assuj=="1")
+ {
+ print '| '.$langs->transcountry('LocalTax2IsUsed',$mysoc->country_code).' | ';
+ print yn($soc->localtax2_assuj);
+ print ' |
';
+ }
+
print '';
- print '';
-
-
- // TODO: Improve and move to tpl
-
+ dol_fiche_end();
+
+
+ print '';
}