On dplace l'option qui dfinit si socit assujeti TVA dans configuration globale (car s'applique a tout module et pas seulement facture).
This commit is contained in:
parent
f123ab7081
commit
6620222363
@ -70,11 +70,6 @@ if ($_POST["action"] == 'setforcedate')
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($_POST["action"] == 'settvaoption')
|
||||
{
|
||||
if (dolibarr_set_const($db, "FACTURE_TVAOPTION",$_POST["optiontva"])) $facture_tva_option = $_POST["optiontva"];
|
||||
}
|
||||
|
||||
if ($_POST["action"] == 'update' || $_POST["action"] == 'add')
|
||||
{
|
||||
if (! dolibarr_set_const($db, $_POST["constname"],$_POST["constvalue"],$typeconst[$_POST["consttype"]],0,isset($_POST["constnote"])?$_POST["constnote"]:''));
|
||||
@ -240,7 +235,7 @@ print '<form action="facture.php" method="post">';
|
||||
print '<input type="hidden" name="action" value="setribchq">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>Mode règlement à proposer</td>';
|
||||
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>';
|
||||
print "</tr>\n";
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'>';
|
||||
@ -320,35 +315,6 @@ print "</form>";
|
||||
print "</table>";
|
||||
|
||||
|
||||
/*
|
||||
* 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>";
|
||||
|
||||
|
||||
print "<br>";
|
||||
print_titre($langs->trans("OtherOptions"));
|
||||
|
||||
@ -368,8 +334,8 @@ print '</td><td width="60" align="center">';
|
||||
$forcedate=(defined("FAC_FORCE_DATE_VALIDATION") && FAC_FORCE_DATE_VALIDATION)?1:0;
|
||||
$html=new Form($db);
|
||||
print $html->selectyesno("forcedate",$forcedate,1);
|
||||
print '</td><td align="center">';
|
||||
print '<input type="submit" value="'.$langs->trans("Modify").'">';
|
||||
print '</td><td align="right">';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||
print "</td></tr>\n";
|
||||
print '</form>';
|
||||
|
||||
|
||||
@ -34,7 +34,6 @@ $langs->load("companies");
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
if ( (isset($_POST["action"]) && $_POST["action"] == 'update')
|
||||
|| (isset($_POST["action"]) && $_POST["action"] == 'updateedit') )
|
||||
{
|
||||
@ -50,6 +49,7 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update')
|
||||
dolibarr_set_const($db, "MAIN_INFO_APE",$_POST["ape"]);
|
||||
dolibarr_set_const($db, "MAIN_INFO_RCS",$_POST["rcs"]);
|
||||
dolibarr_set_const($db, "MAIN_INFO_TVAINTRA",$_POST["tva"]);
|
||||
dolibarr_set_const($db, "FACTURE_TVAOPTION",$_POST["optiontva"]);
|
||||
|
||||
if ($_POST['action'] != 'updateedit')
|
||||
{
|
||||
@ -230,8 +230,52 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
|
||||
|
||||
print '</table>';
|
||||
|
||||
print '<br><center><input type="submit" value="'.$langs->trans("Save").'"></center>';
|
||||
|
||||
|
||||
/*
|
||||
* Options fiscale
|
||||
*/
|
||||
print '<br>';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("VATManagement").'</td><td>'.$langs->trans("Description").'</td>';
|
||||
print '<td align="right"> </td>';
|
||||
print "</tr>\n";
|
||||
$var=true;
|
||||
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optiontva\" value=\"reel\"".($conf->global->FACTURE_TVAOPTION != "franchise"?" checked":"")."> ".$langs->trans("VATIsUsed")."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->trans("VATIsUsedDesc")."</td></tr>";
|
||||
print "<td><i>".$langs->trans("Example").': '.$langs->trans("VATIsUsedExampleFR")."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
/* Je désactive cette option "facturation" car ce statut fiscal n'existe pas. Seul le réel et franchise existe.
|
||||
Cette option ne doit donc pas etre en "exclusif" avec l'option fiscale de gestion de tva. Peut etre faut-il
|
||||
une option a part qui n'entre pas en conflit avec les choix "assujéti TVA" ou "non".
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optiontva\" value=\"facturation\"".($conf->global->FACTURE_TVAOPTION == "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\"".($conf->global->FACTURE_TVAOPTION == "franchise"?" checked":"")."> ".$langs->trans("VATIsNotUsed")."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->trans("VATIsNotUsedDesc")."</td></tr>";
|
||||
print "<td><i>".$langs->trans("Example").': '.$langs->trans("VATIsNotUsedExampleFR")."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
print "</table>";
|
||||
|
||||
|
||||
|
||||
print '<br><center><input type="submit" class="button" value="'.$langs->trans("Save").'"></center>';
|
||||
print '<br>';
|
||||
|
||||
print '</form>';
|
||||
}
|
||||
else
|
||||
@ -337,8 +381,49 @@ else
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td>'.$langs->trans("TVAIntra").'</td><td>' . $conf->global->MAIN_INFO_TVAINTRA . '</td></tr>';
|
||||
|
||||
print '</table><br>';
|
||||
print '</table>';
|
||||
|
||||
|
||||
/*
|
||||
* Options fiscale
|
||||
*/
|
||||
print '<br>';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("VATManagement").'</td><td>'.$langs->trans("Description").'</td>';
|
||||
print '<td align="right"> </td>';
|
||||
print "</tr>\n";
|
||||
$var=true;
|
||||
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optiontva\" disabled value=\"reel\"".($conf->global->FACTURE_TVAOPTION != "franchise"?" checked":"")."> ".$langs->trans("VATIsUsed")."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->trans("VATIsUsedDesc")."</td></tr>";
|
||||
print "<td><i>".$langs->trans("Example").': '.$langs->trans("VATIsUsedExampleFR")."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
/* Je désactive cette option "facturation" car ce statut fiscal n'existe pas. Seul le réel et franchise existe.
|
||||
Cette option ne doit donc pas etre en "exclusif" avec l'option fiscale de gestion de tva. Peut etre faut-il
|
||||
une option a part qui n'entre pas en conflit avec les choix "assujéti TVA" ou "non".
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optiontva\" value=\"facturation\"".($conf->global->FACTURE_TVAOPTION == "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\" disabled value=\"franchise\"".($conf->global->FACTURE_TVAOPTION == "franchise"?" checked":"")."> ".$langs->trans("VATIsNotUsed")."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->trans("VATIsNotUsedDesc")."</td></tr>";
|
||||
print "<td><i>".$langs->trans("Example").': '.$langs->trans("VATIsNotUsedExampleFR")."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
print "</table>";
|
||||
|
||||
|
||||
// Boutons d'action
|
||||
print '<div class="tabsAction">';
|
||||
print '<a class="tabAction" href="index.php?action=edit">'.$langs->trans("Edit").'</a>';
|
||||
|
||||
@ -202,6 +202,13 @@ DictionnaryActions=Actions list
|
||||
DictionnarySocialContributions=Social contributions types
|
||||
DictionnaryVAT=VAT Rates
|
||||
VATReceivedOnly=Special rate not billed
|
||||
VATManagement=VAT Management
|
||||
VATIsUsed=VAT is used
|
||||
VATIsNotUsed=VAT is not used
|
||||
VATIsUsedDesc=Le taux de TVA proposé par défaut lors de la création de propale, facture, commande, etc répond à la règle standard en vigueur pour une société: Si le (pays vendeur = pays client) OU (client n'a pas de numéro TVA Intacommunautaire) alors la TVA par défaut est celle du produit vendu, sinon la TVA proposée par défaut est 0.
|
||||
VATIsNotUsedDesc=Le taux de TVA proposé par défaut est 0. C'est le cas d'associations, particuliers ou certaines petites sociétés.
|
||||
VATIsUsedExampleFR=En France, il s'agit des sociétés ou organismes ayant choisi un régime fiscale réel (Réel simplifié ou Réel normal), régime dans lequel la TVA est déclarée.
|
||||
VATIsNotUsedExampleFR=En France, il s'agit des associations ne déclarant pas de TVA ou sociétés, organismes ou professions libérales ayant choisi le régime fiscal micro entreprise (TVA en franchise) et payant une TVA en franchise sans faire de déclaration de TVA. Ce choix fait apparaitre la mention "TVA non applicable - art-293B du CGI" sur les factures.
|
||||
LabelUsedByDefault=Label used by default if no translation can be found for code
|
||||
AlwaysActive=Always active
|
||||
UpdateRequired=Your system need to be updated. For this click on <a href="%s">Update now</a>.
|
||||
|
||||
@ -202,6 +202,13 @@ DictionnaryActions=Liste des actions
|
||||
DictionnarySocialContributions=Types de charges sociales
|
||||
DictionnaryVAT=Taux de TVA
|
||||
VATReceivedOnly=Taux special non facturé
|
||||
VATManagement=Gestion TVA
|
||||
VATIsUsed=Assujéti à TVA
|
||||
VATIsNotUsed=Non assujéti à TVA
|
||||
VATIsUsedDesc=Le taux de TVA proposé par défaut lors de la création de propale, facture, commande, etc répond à la règle standard en vigueur pour une société: Si le (pays vendeur = pays client) OU (client n'a pas de numéro TVA Intacommunautaire) alors la TVA par défaut est celle du produit vendu, sinon la TVA proposée par défaut est 0.
|
||||
VATIsNotUsedDesc=Le taux de TVA proposé par défaut est 0. C'est le cas d'associations, particuliers ou certaines petites sociétés.
|
||||
VATIsUsedExampleFR=En France, il s'agit des sociétés ou organismes ayant choisi un régime fiscale réel (Réel simplifié ou Réel normal), régime dans lequel la TVA est déclarée.
|
||||
VATIsNotUsedExampleFR=En France, il s'agit des associations ne déclarant pas de TVA ou sociétés, organismes ou professions libérales ayant choisi le régime fiscal micro entreprise (TVA en franchise) et payant une TVA en franchise sans faire de déclaration de TVA. Ce choix fait apparaitre la mention "TVA non applicable - art-293B du CGI" sur les factures.
|
||||
LabelUsedByDefault=Libellé qui sera utilisé si aucune traduction n'est trouvé pour ce code
|
||||
AlwaysActive=Toujours actif
|
||||
UpdateRequired=Votre système nécessite une mise à jour. Pour cela cliquez sur <a href="%s">Mettre à jour</a>.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user