70 |
exit; |
exit; |
71 |
} |
} |
72 |
|
|
|
if ($_POST["action"] == 'settvaoption') |
|
|
{ |
|
|
if (dolibarr_set_const($db, "FACTURE_TVAOPTION",$_POST["optiontva"])) $facture_tva_option = $_POST["optiontva"]; |
|
|
} |
|
|
|
|
73 |
if ($_POST["action"] == 'update' || $_POST["action"] == 'add') |
if ($_POST["action"] == 'update' || $_POST["action"] == 'add') |
74 |
{ |
{ |
75 |
if (! dolibarr_set_const($db, $_POST["constname"],$_POST["constvalue"],$typeconst[$_POST["consttype"]],0,isset($_POST["constnote"])?$_POST["constnote"]:'')); |
if (! dolibarr_set_const($db, $_POST["constname"],$_POST["constvalue"],$typeconst[$_POST["consttype"]],0,isset($_POST["constnote"])?$_POST["constnote"]:'')); |
235 |
print '<input type="hidden" name="action" value="setribchq">'; |
print '<input type="hidden" name="action" value="setribchq">'; |
236 |
print '<tr class="liste_titre">'; |
print '<tr class="liste_titre">'; |
237 |
print '<td>Mode règlement à proposer</td>'; |
print '<td>Mode règlement à proposer</td>'; |
238 |
print '<td align="right"><input type="submit" value="'.$langs->trans("Modify").'"></td>'; |
print '<td align="right"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>'; |
239 |
print "</tr>\n"; |
print "</tr>\n"; |
240 |
$var=!$var; |
$var=!$var; |
241 |
print '<tr '.$bc[$var].'>'; |
print '<tr '.$bc[$var].'>'; |
315 |
print "</table>"; |
print "</table>"; |
316 |
|
|
317 |
|
|
|
/* |
|
|
* Options fiscale |
|
|
*/ |
|
|
print '<br>'; |
|
|
print_titre("Options fiscales de facturation de la TVA"); |
|
|
|
|
|
print '<table class="noborder" width="100%">'; |
|
|
print '<form action="facture.php" method="post">'; |
|
|
print '<input type="hidden" name="action" value="settvaoption">'; |
|
|
print '<tr class="liste_titre">'; |
|
|
print '<td>'.$langs->trans("Option").'</td><td>'.$langs->trans("Description").'</td>'; |
|
|
print '<td align="right"><input type="submit" value="'.$langs->trans("Modify").'"></td>'; |
|
|
print "</tr>\n"; |
|
|
$var=True; |
|
|
$var=!$var; |
|
|
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optiontva\" value=\"reel\"".($facture_tva_option != "franchise"?" checked":"")."> Option réel</label></td>"; |
|
|
print "<td colspan=\"2\">L'option 'réel' est la plus courante. Elle est à destination des entreprises et professions libérales.\nChaque produits/service vendu est soumis à la TVA (Dolibarr propose le taux standard par défaut à la création d'une facture). Cette dernière est récupérée l'année suivante suite à la déclaration TVA pour les produits/services achetés et est reversée à l'état pour les produits/services vendus."; |
|
|
print "</td></tr>\n"; |
|
|
$var=!$var; |
|
|
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optiontva\" value=\"facturation\"".($facture_tva_option == "facturation"?" checked":"")."> Option facturation</label></td>"; |
|
|
print "<td colspan=\"2\">L'option 'facturation' est utilisée par les entreprises qui payent la TVA à facturation (vente de matériel).</td></tr>\n"; |
|
|
$var=!$var; |
|
|
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optiontva\" value=\"franchise\"".($facture_tva_option == "franchise"?" checked":"")."> Option franchise</label></td>"; |
|
|
print "<td colspan=\"2\">L'option 'franchise' est utilisée par les particuliers ou professions libérales à titre occasionnel avec de petits chiffres d'affaires.\nChaque produits/service vendu est soumis à une TVA de 0 (Dolibarr propose le taux 0 par défaut à la création d'une facture cliente). Il n'y a pas de déclaration ou récupération de TVA, et les factures qui gèrent l'option affichent la mention obligatoire \"TVA non applicable - art-293B du CGI\".</td></tr>\n"; |
|
|
$var=!$var; |
|
|
print "</form>"; |
|
|
print "</table>"; |
|
|
|
|
|
|
|
318 |
print "<br>"; |
print "<br>"; |
319 |
print_titre($langs->trans("OtherOptions")); |
print_titre($langs->trans("OtherOptions")); |
320 |
|
|
334 |
$forcedate=(defined("FAC_FORCE_DATE_VALIDATION") && FAC_FORCE_DATE_VALIDATION)?1:0; |
$forcedate=(defined("FAC_FORCE_DATE_VALIDATION") && FAC_FORCE_DATE_VALIDATION)?1:0; |
335 |
$html=new Form($db); |
$html=new Form($db); |
336 |
print $html->selectyesno("forcedate",$forcedate,1); |
print $html->selectyesno("forcedate",$forcedate,1); |
337 |
print '</td><td align="center">'; |
print '</td><td align="right">'; |
338 |
print '<input type="submit" value="'.$langs->trans("Modify").'">'; |
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; |
339 |
print "</td></tr>\n"; |
print "</td></tr>\n"; |
340 |
print '</form>'; |
print '</form>'; |
341 |
|
|