Apply patch by juanjo
This commit is contained in:
parent
36024ed4af
commit
5c6089ef32
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2010 Juanjo Menent <dolibarr@2byte.es>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -129,6 +130,10 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update')
|
||||
|
||||
dolibarr_set_const($db, "FACTURE_TVAOPTION",$_POST["optiontva"],'chaine',0,'',$conf->entity);
|
||||
|
||||
// Local taxes
|
||||
dolibarr_set_const($db, "FACTURE_LOCAL_TAX1_OPTION",$_POST["optionlocaltax1"],'chaine',0,'',$conf->entity);
|
||||
dolibarr_set_const($db, "FACTURE_LOCAL_TAX2_OPTION",$_POST["optionlocaltax2"],'chaine',0,'',$conf->entity);
|
||||
|
||||
if ($_POST['action'] != 'updateedit' && ! $message)
|
||||
{
|
||||
Header("Location: ".$_SERVER["PHP_SELF"]);
|
||||
@ -489,6 +494,67 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
|
||||
|
||||
print "</table>";
|
||||
|
||||
/*
|
||||
* Local Taxes
|
||||
*/
|
||||
if ($obj->code=='ES' && $conf->global->MAIN_FEATURES_LEVEL >= 1)
|
||||
{
|
||||
// Local Tax 1
|
||||
print '<br>';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->transcountry("LocalTax1Management",$code_pays).'</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=\"optionlocaltax1\" value=\"reel\"".($conf->global->FACTURE_LOCAL_TAX1_OPTION != "franchise"?" checked":"")."> ".$langs->transcountry("LocalTax1IsUsed",$code_pays)."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->transcountry("LocalTax1IsUsedDesc",$code_pays)."</td></tr>";
|
||||
print "<tr><td><i>".$langs->trans("Example").': '.$langs->transcountry("LocalTax1IsUsedExample",$code_pays)."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optionlocaltax1\" value=\"franchise\"".($conf->global->FACTURE_LOCAL_TAX1_OPTION == "franchise"?" checked":"")."> ".$langs->transcountry("LocalTax1IsNotUsed",$code_pays)."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->transcountry("LocalTax1IsNotUsedDesc",$code_pays)."</td></tr>";
|
||||
print "<tr><td><i>".$langs->trans("Example").': '.$langs->transcountry("LocalTax1IsNotUsedExample",$code_pays)."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
print "</table>";
|
||||
|
||||
// Local Tax 2
|
||||
print '<br>';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->transcountry("LocalTax2Management",$code_pays).'</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=\"optionlocaltax2\" value=\"reel\"".($conf->global->FACTURE_LOCAL_TAX2_OPTION != "franchise"?" checked":"")."> ".$langs->transcountry("LocalTax2IsUsed",$code_pays)."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->transcountry("LocalTax2IsUsedDesc",$code_pays)."</td></tr>";
|
||||
print "<tr><td><i>".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsUsedExample",$code_pays)."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optionlocaltax2\" value=\"franchise\"".($conf->global->FACTURE_LOCAL_TAX2_OPTION == "franchise"?" checked":"")."> ".$langs->transcountry("LocalTax2IsNotUsed",$code_pays)."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->transcountry("LocalTax2IsNotUsedDesc",$code_pays)."</td></tr>";
|
||||
print "<tr><td><i>".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsNotUsedExample",$code_pays)."</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>';
|
||||
@ -760,6 +826,71 @@ else
|
||||
print "</table>";
|
||||
|
||||
|
||||
/*
|
||||
* Local Taxes
|
||||
*/
|
||||
if ($obj->code=='ES')
|
||||
{
|
||||
// Local Tax 1
|
||||
print '<br>';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->transcountry("LocalTax1Management",$code_pays).'</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 ".$bc[$var]." type=\"radio\" name=\"optionlocaltax1\" disabled value=\"reel\"".($conf->global->FACTURE_LOCAL_TAX1_OPTION != "franchise"?" checked":"")."> ".$langs->transcountry("LocalTax1IsUsed",$code_pays)."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->transcountry("LocalTax1IsUsedDesc",$code_pays)."</td></tr>";
|
||||
print "<tr><td><i>".$langs->trans("Example",$code_pays).': '.$langs->transcountry("LocalTax1IsUsedExample",$code_pays)."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"140\"><label><input ".$bc[$var]." type=\"radio\" name=\"optionlocaltax1\" disabled value=\"franchise\"".($conf->global->FACTURE_LOCAL_TAX1_OPTION == "franchise"?" checked":"")."> ".$langs->transcountry("LocalTax1IsNotUsed",$code_pays)."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->transcountry("LocalTax1IsNotUsedDesc",$code_pays)."</td></tr>";
|
||||
print "<tr><td><i>".$langs->trans("Example",$code_pays).': '.$langs->transcountry("LocalTax1IsNotUsedExample",$code_pays)."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
print "</table>";
|
||||
|
||||
// Local Tax 2
|
||||
print '<br>';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->transcountry("LocalTax2Management",$code_pays).'</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 ".$bc[$var]." type=\"radio\" name=\"optionlocaltax2\" disabled value=\"reel\"".($conf->global->FACTURE_LOCAL_TAX2_OPTION != "franchise"?" checked":"")."> ".$langs->transcountry("LocalTax2IsUsed",$code_pays)."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->transcountry("LocalTax2IsUsedDesc",$code_pays)."</td></tr>";
|
||||
print "<tr><td><i>".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsUsedExample",$code_pays)."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"140\"><label><input ".$bc[$var]." type=\"radio\" name=\"optionlocaltax2\" disabled value=\"franchise\"".($conf->global->FACTURE_LOCAL_TAX2_OPTION == "franchise"?" checked":"")."> ".$langs->transcountry("LocalTax2IsNotUsed",$code_pays)."</label></td>";
|
||||
print '<td colspan="2">';
|
||||
print "<table>";
|
||||
print "<tr><td>".$langs->transcountry("LocalTax2IsNotUsedDesc",$code_pays)."</td></tr>";
|
||||
print "<tr><td><i>".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsNotUsedExample",$code_pays)."</i></td></tr>\n";
|
||||
print "</table>";
|
||||
print "</td></tr>\n";
|
||||
|
||||
print "</table>";
|
||||
}
|
||||
|
||||
|
||||
// Actions buttons
|
||||
print '<div class="tabsAction">';
|
||||
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=edit">'.$langs->trans("Modify").'</a>';
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
-- Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||
-- Copyright (C) 2010 Juanjo Menent <dolibarr@2byte.es>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
@ -71,6 +72,8 @@ create table llx_societe
|
||||
mode_reglement tinyint, -- mode de reglement
|
||||
cond_reglement tinyint, -- condition de reglement
|
||||
tva_assuj tinyint DEFAULT 1, -- assujeti ou non a la TVA
|
||||
localtax1_assuj tinyint DEFAULT 0, -- assujeti ou non a local tax 1
|
||||
localtax2_assuj tinyint DEFAULT 0, -- assujeti ou non a local tax 2
|
||||
gencod varchar(255), -- barcode
|
||||
price_level integer NULL, -- level of price for multiprices
|
||||
import_key varchar(14) -- import key
|
||||
|
||||
@ -588,6 +588,17 @@ VATManagement = Gestió IVA
|
||||
VATIsUsedDesc = El tipus d'IVA proposat per defecte en les creacions de pressupostos, factures, comandes, etc. Respon a la següent regla: <br> Si el venedor no està subjecte a IVA, IVA per defecte = 0. Final de regla. <br> Si el país del venedor = país del comprador llavors IVA per defecte = IVA del producte venut. Final de regla. <br> Si venedor i comprador resideixen a la Comunitat Europea i el bé venut = nou mitjà de transports (auto, vaixell, avió), IVA per defecte = 0 (l'IVA ha de ser pagat pel comprador a la hisenda pública del seu país i no al venedor). Final de regla <br> Si venedor i comprador resideixen a la Comunitat Europea i comprador = particular o empresa sense NIF intracomunitari llavors IVA per defecte = IVA del producte venut. Final de regla. <br> Si venedor i comprador resideixen a la Comunitat Europea i comprador = empresa amb NIF intracomunitari llavors IVA per defecte = 0. Final de regla. <br> Sinó, IVA proposat per defecte = 0. Final de regla. <br>
|
||||
VATIsNotUsedDesc = El tipus d'IVA proposat per defecte és 0. Aquest és el cas d'associacions, particulars o algunes petites societats.
|
||||
VATIsUsedExampleFR = A França, es tracta de les societats o organismes que trien un règim fiscal general (General simplificat o General normal), règim en el qual es declara l'IVA.
|
||||
##### Local Taxes #####
|
||||
LocalTax1ManagementES = Gestió Recàrrec d'Equivalència
|
||||
LocalTax1IsUsedDescES = El tipus de RE proposat per defecte en les creacions de pressupostos, factures, comandes, etc. Respon a la següent regla:<br>Si el comprador no està subjecte a RE, RE per defecte = 0. Final de regla.<br>Si el comprador està subjecte a RE aleshores s'aplica valor de RE per defecte. Final de regla.<br>
|
||||
LocalTax1IsNotUsedDescES = El tipus de RE proposat per defecte es 0. Final de regla.
|
||||
LocalTax1IsUsedExampleES = A Espanya, es tracta de persones físiques: autònoms subjectes a uns epígrafs concrets de l'IAE.
|
||||
LocalTax1IsNotUsedExampleES = A Espanya, es tracta d'empreses jurídiques: Societats limitades, anònimes, etc. i persones físiques (autònoms) subjectes a certs epígrafs de l'IAE.
|
||||
LocalTax2ManagementES = Gestió IRPF
|
||||
LocalTax2IsUsedDescES = El tipus d'IRPF proposat per defecte en les creacions de pressupostos, factures, comandes, etc. Respon a la següent regla:<br>Si el venedor no està subjecte a IRPF, IRPF per defecte = 0. Final de regla.<br>Si el venedor està subjecte a IRPF aleshores s'aplica valor d'IRPF per defecte. Final de regla.<br>
|
||||
LocalTax2IsNotUsedDescES = El tipus d'IRPF proposat per defecte es 0. Final de regla.
|
||||
LocalTax2IsUsedExampleES = A Espanya, es tracta de persones físiques: autònoms i professionals independents que presten serveis i empreses que han triat el règim fiscal de mòduls.
|
||||
LocalTax2IsNotUsedExampleES = A Espanya, es tracta d'empreses no subjectes al règim fiscal de mòduls.
|
||||
VATIsNotUsedExampleFR = A França, es tracta d'associacions exemptes d'IVA o societats, organismes o professions liberals que han eligedo el règim fiscal de mòduls (IVA en franquícia), pagant un IVA en franquícia sense fer declaració d'IVA. Aquesta elecció fa aparèixer l'anotació "IVA no aplicable - art-293B del CGI" en les factures.
|
||||
LabelUsedByDefault = Etiqueta que s'utilitzarà si no es troba traducció per aquest codi
|
||||
LabelOnDocuments = Etiqueta sobre documents
|
||||
|
||||
@ -70,6 +70,11 @@ Town = Població
|
||||
Web = Web
|
||||
VATIsUsed = Subjecte a IVA
|
||||
VATIsNotUsed = No subjecte a IVA
|
||||
##### Local Taxes #####
|
||||
LocalTax1IsUsedES = Subjecte a RE
|
||||
LocalTax1IsNotUsedES = No subjecte a RE
|
||||
LocalTax2IsUsedES = Subjecte a IRPF
|
||||
LocalTax2IsNotUsedES = No subjecte a IRPF
|
||||
ThirdPartyEMail = %s
|
||||
WrongCustomerCode = Codi client incorrecte
|
||||
WrongSupplierCode = Códi proveïdor incorrecte
|
||||
|
||||
@ -590,6 +590,17 @@ VATIsUsedDesc=The VAT rate by default when creating prospects, invoices, orders
|
||||
VATIsNotUsedDesc=By default the proposed VAT is 0 which can be used for cases like associations, individuals ou small companies.
|
||||
VATIsUsedExampleFR=In France, it means companies or organisations having a real fiscal system (Simplified real or normal real). A system in which VAT is declared.
|
||||
VATIsNotUsedExampleFR=In France, it means associations that are non VAT declared or companies, organisations or liberal professions that have chosen the micro enterprise fiscal system (VAT in franchise) and paid a franchise VAT without any VAT declaration. This choice will display the reference "Non applicable VAT - art-293B of CGI" on invoices.
|
||||
##### Local Taxes #####
|
||||
LocalTax1ManagementES = RE Management
|
||||
LocalTax1IsUsedDescES = The RE rate by default when creating prospects, invoices, orders etc follow the active standard rule:<br>If te buyer is not subjected to RE, RE by default=0. End of rule.<br>If the buyer is subjected to RE then the RE by default. End of rule.<br>
|
||||
LocalTax1IsNotUsedDescES = By default the proposed RE is 0. End of rule.
|
||||
LocalTax1IsUsedExampleES = In Spain they are professionals subject to some specific sections of the Spanish IAE.
|
||||
LocalTax1IsNotUsedExampleES = In Spain they are professional and societies and subject to certain sections of the Spanish IAE.
|
||||
LocalTax2ManagementES = IRPF Management
|
||||
LocalTax2IsUsedDescES = The RE rate by default when creating prospects, invoices, orders etc follow the active standard rule:<br>If the seller is not subjected to IRPF, then IRPF by default=0. End of rule.<br>If the seller is subjected to IRPF then the IRPF by default. End of rule.<br>
|
||||
LocalTax2IsNotUsedDescES = By default the proposed IRPF is 0. End of rule.
|
||||
LocalTax2IsUsedExampleES = In Spain, freelancers and independent professionals who provide services and companies who have chosen the tax system of modules.
|
||||
LocalTax2IsNotUsedExampleES = In Spain they are bussines not subject to tax system of modules.
|
||||
LabelUsedByDefault=Label used by default if no translation can be found for code
|
||||
LabelOnDocuments=Label on documents
|
||||
NbOfDays=Nb of days
|
||||
|
||||
@ -69,6 +69,11 @@ Town=City
|
||||
Web=Web
|
||||
VATIsUsed=VAT is used
|
||||
VATIsNotUsed=VAT is not used
|
||||
##### Local Taxes #####
|
||||
LocalTax1IsUsedES = RE is used
|
||||
LocalTax1IsNotUsedES = RE is not used
|
||||
LocalTax2IsUsedES = IRPF is used
|
||||
LocalTax2IsNotUsedES = IRPF is not used
|
||||
ThirdPartyEMail=%s
|
||||
WrongCustomerCode=Customer code invalid
|
||||
WrongSupplierCode=Supplier code invalid
|
||||
|
||||
@ -589,6 +589,17 @@ VATIsUsedDesc = El tipo de IVA propuesto por defecto en las creaciones de presup
|
||||
VATIsNotUsedDesc = El tipo de IVA propuesto por defecto es 0. Este es el caso de asociaciones, particulares o algunas pequeñas sociedades.
|
||||
VATIsUsedExampleFR = En Francia, se trata de las sociedades u organismos que eligen un régimen fiscal general (General simplificado o General normal), régimen en el cual se declara el IVA.
|
||||
VATIsNotUsedExampleFR = En Francia, se trata de asociaciones exentas de IVA o sociedades, organismos o profesiones liberales que han eligedo el régimen fiscal de módulos (IVA en franquicia), pagando un IVA en franquicia sin hacer declaración de IVA. Esta elección hace aparecer la anotación "IVA no aplicable - art-293B del CGI" en las facturas.
|
||||
##### Local Taxes #####
|
||||
LocalTax1ManagementES = Gestión RE
|
||||
LocalTax1IsUsedDescES = El tipo de RE propuesto por defecto en las creaciones de presupuestos, facturas, pedidos, etc. Responde a la siguiente regla:<br>Si el comprador no está sujeto a RE, RE por defecto=0. Final de regla.<br>Si el comprador está sujeto a RE entoces se aplica valor de RE por defecto. Final de regla.<br>
|
||||
LocalTax1IsNotUsedDescES = El tipo de RE propuesto por defecto es 0. Final de regla.
|
||||
LocalTax1IsUsedExampleES = En España, se trata de personas físicas: autónomos sujetos a unos epígrafes concretos del IAE.
|
||||
LocalTax1IsNotUsedExampleES = En España, se trata de empresas jurídicas: Sociedades limitadas, anónimas, etc. y personas físicas (autónomos) sujetos a ciertos epígrafes del IAE.
|
||||
LocalTax2ManagementES = Gestión IRPF
|
||||
LocalTax2IsUsedDescES = El tipo de IRPF propuesto por defecto en las creaciones de presupuestos, facturas, pedidos, etc. Responde a la siguiente regla:<br>Si el vendedor no está sujeto a IRPF, IRPF por defecto=0. Final de regla.<br>Si el vendedor está sujeto a IRPF entoces se aplica valor de IRPF por defecto. Final de regla.<br>
|
||||
LocalTax2IsNotUsedDescES = El tipo de IRPF propuesto por defecto es 0. Final de regla.
|
||||
LocalTax2IsUsedExampleES = En España, se trata de personas físicas: autónomos y profesionales independientes que prestan servicios y empresas que han elegido el régimen fiscal de módulos.
|
||||
LocalTax2IsNotUsedExampleES = En España, se trata de empresas no sujetas al régimen fiscal de módulos.
|
||||
LabelUsedByDefault = Etiqueta que se utilizará si no se encuentra traducción para este código
|
||||
LabelOnDocuments = Etiqueta sobre documentos
|
||||
NbOfDays = Nº de días
|
||||
|
||||
@ -70,6 +70,11 @@ Town = Población
|
||||
Web = Web
|
||||
VATIsUsed = Sujeto a IVA
|
||||
VATIsNotUsed = No sujeto a IVA
|
||||
##### Local Taxes #####
|
||||
LocalTax1IsUsedES = Sujeto a RE
|
||||
LocalTax1IsNotUsedES = No sujeto a RE
|
||||
LocalTax2IsUsedES = Sujeto a IRPF
|
||||
LocalTax2IsNotUsedES = No sujeto a IRPF
|
||||
ThirdPartyEMail = %s
|
||||
WrongCustomerCode = Código cliente incorrecto
|
||||
WrongSupplierCode = Código proveedor incorrecto
|
||||
|
||||
@ -590,6 +590,17 @@ VATIsUsedDesc = Le taux de TVA proposé par défaut lors de la création de prop
|
||||
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 de plus apparaitre la mention "TVA non applicable - art-293B du CGI" sur les factures.
|
||||
##### Local Taxes #####
|
||||
LocalTax1ManagementES = Gestion RE
|
||||
LocalTax1IsUsedDescES = Le taux de RE proposé par défaut lors de la création de propale, facture, commande, etc répond à la règle standard suivante:<br>Si acheteur non assujeti à RE, RE par défaut=0. Fin de règle.<br>Si acheteur non assujeti à RE alors RE par défaut. Fin de règle.<br>
|
||||
LocalTax1IsNotUsedDescES = Le taux de RE proposé par défaut est 0. Fin de règle.
|
||||
LocalTax1IsUsedExampleES = En Espagne, ce sont des professionnels sous réserve de certaines sections spécifiques de l'IAE Espagnol.
|
||||
LocalTax1IsNotUsedExampleES = En Espagne, ce sont des sociétés en commandite, les sociétés anonymes, etc. et les individus (autonomes) sous réserve de certaines sections de l'IAE Espagnol.
|
||||
LocalTax2ManagementES = Gestion IRPF
|
||||
LocalTax2IsUsedDescES = Le IRPF proposé par défaut lors de la création de propale, facture, commande, etc répond à la règle standard suivante:<br>Si vendeur non assujeti à IRPF, IRPF par défaut=0. Fin de règle.<br>Si vendeur non assujeti à IRPF alors IRPF par défaut. Fin de règle.<br>
|
||||
LocalTax2IsNotUsedDescES = Le IRPF proposé par défaut est 0. Fin de règle.
|
||||
LocalTax2IsUsedExampleES = En Espagne, ce sont des professionels autonomes et indépendants qui offrent des services, et des sociétés qui ont choisi le système fiscal du modules.
|
||||
LocalTax2IsNotUsedExampleES = En Espagne, ce sont sociétés que ne sont pas soumis aux système fiscal du modules.
|
||||
LabelUsedByDefault = Libellé qui sera utilisé si aucune traduction n'est trouvée pour ce code
|
||||
LabelOnDocuments = Libellé sur documents
|
||||
NbOfDays = Nbre de jours
|
||||
|
||||
@ -70,6 +70,11 @@ Town=Ville
|
||||
Web=Web
|
||||
VATIsUsed=Assujetti à TVA
|
||||
VATIsNotUsed=Non assujetti à TVA
|
||||
##### Local Taxes #####
|
||||
LocalTax1IsUsedES = Assujetti à RE
|
||||
LocalTax1IsNotUsedES = Non assujetti à RE
|
||||
LocalTax2IsUsedES = Assujetti à IRPF
|
||||
LocalTax2IsNotUsedES = Non assujetti à IRPF
|
||||
ThirdPartyEMail=%s
|
||||
WrongCustomerCode=Code client incorrect
|
||||
WrongSupplierCode=Code fournisseur incorrect
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2005 Simon Tosser <simon@kornog-computing.com>
|
||||
* Copyright (C) 2006 Andre Cianfarani <andre.cianfarani@acdeveloppement.net>
|
||||
* Copyright (C) 2010 Juanjo Menent <dolibarr@2byte.es>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -380,6 +381,10 @@ if (! defined('NOREQUIREDB') && ! defined('NOREQUIRESOC'))
|
||||
|
||||
// Define if company use vat or not (Do not use conf->global->FACTURE_TVAOPTION anymore)
|
||||
$mysoc->tva_assuj=($conf->global->FACTURE_TVAOPTION=='franchise'?0:1);
|
||||
|
||||
// Define if company use local taxes
|
||||
$mysoc->localtax1_assuj=($conf->global->FACTURE_LOCAL_TAX1_OPTION=='franchise'?0:1);
|
||||
$mysoc->localtax2_assuj=($conf->global->FACTURE_LOCAL_TAX2_OPTION=='franchise'?0:1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
|
||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2008 Patrick Raguin <patrick.raguin@auguria.net>
|
||||
* Copyright (C) 2010 Juanjo Menent <dolibarr@2byte.es>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -72,7 +73,11 @@ class Societe extends CommonObject
|
||||
|
||||
var $tva_assuj;
|
||||
var $tva_intra;
|
||||
|
||||
|
||||
// Local taxes
|
||||
var $localtax1_assuj;
|
||||
var $localtax2_assuj;
|
||||
|
||||
var $capital;
|
||||
var $typent_id;
|
||||
var $typent_code;
|
||||
@ -362,6 +367,10 @@ class Societe extends CommonObject
|
||||
|
||||
$this->tva_assuj=trim($this->tva_assuj);
|
||||
$this->tva_intra=dol_sanitizeFileName($this->tva_intra,'');
|
||||
|
||||
// Local taxes
|
||||
$this->localtax1_assuj=trim($this->localtax1_assuj);
|
||||
$this->localtax2_assuj=trim($this->localtax2_assuj);
|
||||
|
||||
$this->capital=trim($this->capital);
|
||||
if (strlen($this->capital) == 0) $this->capital = 0;
|
||||
@ -418,7 +427,11 @@ class Societe extends CommonObject
|
||||
|
||||
$sql .= ",tva_assuj = ".($this->tva_assuj>=0?"'".$this->tva_assuj."'":"null");
|
||||
$sql .= ",tva_intra = '" . addslashes($this->tva_intra) ."'";
|
||||
|
||||
|
||||
// Local taxes
|
||||
$sql .= ",localtax1_assuj = ".($this->localtax1_assuj>=0?"'".$this->localtax1_assuj."'":"null");
|
||||
$sql .= ",localtax2_assuj = ".($this->localtax2_assuj>=0?"'".$this->localtax2_assuj."'":"null");
|
||||
|
||||
$sql .= ",capital = '" . addslashes($this->capital) ."'";
|
||||
|
||||
$sql .= ",prefix_comm = ".($this->prefix_comm?"'".addslashes($this->prefix_comm)."'":"null");
|
||||
@ -546,7 +559,7 @@ class Societe extends CommonObject
|
||||
$sql .= ', s.fk_forme_juridique as forme_juridique_code';
|
||||
$sql .= ', s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur, s.parent, s.gencod';
|
||||
$sql .= ', s.fk_departement, s.fk_pays, s.fk_stcomm, s.remise_client, s.mode_reglement, s.cond_reglement, s.tva_assuj';
|
||||
$sql .= ', s.fk_prospectlevel';
|
||||
$sql .= ', s.localtax1_assuj, s.localtax2_assuj, s.fk_prospectlevel';
|
||||
$sql .= ', s.import_key';
|
||||
$sql .= ', fj.libelle as forme_juridique';
|
||||
$sql .= ', e.libelle as effectif';
|
||||
@ -630,6 +643,11 @@ class Societe extends CommonObject
|
||||
|
||||
$this->tva_assuj = $obj->tva_assuj;
|
||||
$this->tva_intra = $obj->tva_intra;
|
||||
|
||||
// Local Taxes
|
||||
$this->localtax1_assuj = $obj->localtax1_assuj;
|
||||
$this->localtax2_assuj = $obj->localtax2_assuj;
|
||||
|
||||
|
||||
$this->typent_id = $obj->typent_id;
|
||||
$this->typent_code = $obj->typent_code;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user