$s = $form->textwithpicto($s, $langs->trans("VATIntraCheckDesc", $langs->trans("VATIntraCheck")), 1); } else { $s .= '<a href="' . $langs->transcountry("VATIntraCheckURL", $object->country_id) . '" class="hideonsmartphone" target="_blank">' . img_picto($langs->trans("VATIntraCheckableOnEUSite"), 'help') . '</a>'; } } print $s; print '</td>'; print '</tr>'; // Local Taxes //TODO: Place into a function to control showing by country or study better option if ($mysoc->localtax1_assuj == "1" && $mysoc->localtax2_assuj == "1") { print '<tr><td><label for="localtax1assuj_value">' . $langs->transcountry("LocalTax1IsUsed", $mysoc->country_code) . '</label></td><td>'; print $form->selectyesno('localtax1assuj_value', $object->localtax1_assuj, 1); if (!isOnlyOneLocalTax(1)) { print '<span class="cblt1"> ' . $langs->transcountry("Type", $mysoc->country_code) . ': '; $formcompany->select_localtax(1, $object->localtax1_value, "lt1"); print '</span>'; } print '</td><td><label for="localtax2assuj_value">' . $langs->transcountry("LocalTax2IsUsed", $mysoc->country_code) . '</label></td><td>'; print $form->selectyesno('localtax2assuj_value', $object->localtax2_assuj, 1); if (!isOnlyOneLocalTax(2)) { print '<span class="cblt2"> ' . $langs->transcountry("Type", $mysoc->country_code) . ': '; $formcompany->select_localtax(2, $object->localtax2_value, "lt2"); print '</span>'; } print '</td></tr>'; } elseif ($mysoc->localtax1_assuj == "1" && $mysoc->localtax2_assuj != "1") { print '<tr><td><label for="localtax1assuj_value">' . $langs->transcountry("LocalTax1IsUsed", $mysoc->country_code) . '</label></td><td colspan="3">'; print $form->selectyesno('localtax1assuj_value', $object->localtax1_assuj, 1); if (!isOnlyOneLocalTax(1)) { print '<span class="cblt1"> ' . $langs->transcountry("Type", $mysoc->country_code) . ': ';
print '<tr class="liste_titre">'; print '<td>' . $langs->transcountry("LocalTax1Management", $mysoc->country_code) . '</td><td>' . $langs->trans("Description") . '</td>'; print '<td align="right"> </td>'; print "</tr>\n"; $var = true; $var = !$var; // Note: When option is not set, it must not appears as set on on, because there is no default value for this option print "<tr " . $bc[$var] . "><td width=\"140\"><input type=\"radio\" name=\"optionlocaltax1\" id=\"lt1\" value=\"localtax1on\"" . ($conf->global->FACTURE_LOCAL_TAX1_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX1_OPTION == "localtax1on" ? " checked" : "") . "> " . $langs->transcountry("LocalTax1IsUsed", $mysoc->country_code) . "</td>"; print '<td colspan="2">'; print '<table class="nobordernopadding">'; print "<tr><td><label for=\"lt1\">" . $langs->transcountry("LocalTax1IsUsedDesc", $mysoc->country_code) . "</label></td></tr>"; $example = $langs->transcountry("LocalTax1IsUsedExample", $mysoc->country_code); print $example != "LocalTax1IsUsedExample" ? "<tr><td><i>" . $langs->trans("Example") . ': ' . $langs->transcountry("LocalTax1IsUsedExample", $mysoc->country_code) . "</i></td></tr>\n" : ""; if (!isOnlyOneLocalTax(1)) { print '<tr><td align="left"><label for="lt1">' . $langs->trans("LTRate") . '</label>: '; $formcompany->select_localtax(1, $conf->global->MAIN_INFO_VALUE_LOCALTAX1, "lt1"); print '</td></tr>'; } $opcions = array($langs->trans("CalcLocaltax1") . ' ' . $langs->trans("CalcLocaltax1Desc"), $langs->trans("CalcLocaltax2") . ' - ' . $langs->trans("CalcLocaltax2Desc"), $langs->trans("CalcLocaltax3") . ' - ' . $langs->trans("CalcLocaltax3Desc")); print '<tr><td align="left"></label for="clt1">' . $langs->trans("CalcLocaltax") . '</label>: '; print $form->selectarray("clt1", $opcions, $conf->global->MAIN_INFO_LOCALTAX_CALC1); print '</td></tr>'; print "</table>"; print "</td></tr>\n"; $var = !$var; print "<tr " . $bc[$var] . "><td width=\"140\"><input type=\"radio\" name=\"optionlocaltax1\" id=\"nolt1\" value=\"localtax1off\"" . (empty($conf->global->FACTURE_LOCAL_TAX1_OPTION) || $conf->global->FACTURE_LOCAL_TAX1_OPTION == "localtax1off" ? " checked" : "") . "> " . $langs->transcountry("LocalTax1IsNotUsed", $mysoc->country_code) . "</td>"; print '<td colspan="2">'; print "<table>"; print "<tr><td><label for=\"nolt1\">" . $langs->transcountry("LocalTax1IsNotUsedDesc", $mysoc->country_code) . "</label></td></tr>"; $example = $langs->transcountry("LocalTax1IsNotUsedExample", $mysoc->country_code); print $example != "LocalTax1IsNotUsedExample" ? "<tr><td><i>" . $langs->trans("Example") . ': ' . $langs->transcountry("LocalTax1IsNotUsedExample", $mysoc->country_code) . "</i></td></tr>\n" : "";