Add SOCIETE_SHOW_VAT_IN_LIST option to let the possibility to display (and search) VAT number in list of 'societe'
This commit is contained in:
parent
06eb138b47
commit
2889af9fae
@ -1268,6 +1268,7 @@ class Form
|
|||||||
$selected_input_value = $societetmp->name;
|
$selected_input_value = $societetmp->name;
|
||||||
unset($societetmp);
|
unset($societetmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// mode 1
|
// mode 1
|
||||||
$urloption = 'htmlname='.urlencode($htmlname).'&outjson=1&filter='.urlencode($filter).(empty($excludeids) ? '' : '&excludeids='.join(',', $excludeids)).($showtype ? '&showtype='.urlencode($showtype) : '');
|
$urloption = 'htmlname='.urlencode($htmlname).'&outjson=1&filter='.urlencode($filter).(empty($excludeids) ? '' : '&excludeids='.join(',', $excludeids)).($showtype ? '&showtype='.urlencode($showtype) : '');
|
||||||
$out .= ajax_autocompleter($selected, $htmlname, DOL_URL_ROOT.'/societe/ajax/company.php', $urloption, $conf->global->COMPANY_USE_SEARCH_TO_SELECT, 0, $ajaxoptions);
|
$out .= ajax_autocompleter($selected, $htmlname, DOL_URL_ROOT.'/societe/ajax/company.php', $urloption, $conf->global->COMPANY_USE_SEARCH_TO_SELECT, 0, $ajaxoptions);
|
||||||
@ -1443,6 +1444,10 @@ class Form
|
|||||||
$label .= ' ('.$obj->name_alias.')';
|
$label .= ' ('.$obj->name_alias.')';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($conf->global->SOCIETE_SHOW_VAT_IN_LIST && !empty($obj->tva_intra)) {
|
||||||
|
$label .= ' - '.$obj->tva_intra.'';
|
||||||
|
}
|
||||||
|
|
||||||
if ($showtype) {
|
if ($showtype) {
|
||||||
if ($obj->client || $obj->fournisseur) {
|
if ($obj->client || $obj->fournisseur) {
|
||||||
$label .= ' (';
|
$label .= ' (';
|
||||||
|
|||||||
@ -1041,7 +1041,7 @@ DictionaryFees=Expense report - Types of expense report lines
|
|||||||
DictionarySendingMethods=Shipping methods
|
DictionarySendingMethods=Shipping methods
|
||||||
DictionaryStaff=Number of Employees
|
DictionaryStaff=Number of Employees
|
||||||
DictionaryAvailability=Delivery delay
|
DictionaryAvailability=Delivery delay
|
||||||
DictionaryOrderMethods=Ordering methods
|
DictionaryOrderMethods=Orderinsg methods
|
||||||
DictionarySource=Origin of proposals/orders
|
DictionarySource=Origin of proposals/orders
|
||||||
DictionaryAccountancyCategory=Personalized groups for reports
|
DictionaryAccountancyCategory=Personalized groups for reports
|
||||||
DictionaryAccountancysystem=Models for chart of accounts
|
DictionaryAccountancysystem=Models for chart of accounts
|
||||||
@ -1348,6 +1348,7 @@ BrowserIsKO=You are using the %s web browser. This browser is known to be a bad
|
|||||||
PHPModuleLoaded=PHP component %s is loaded
|
PHPModuleLoaded=PHP component %s is loaded
|
||||||
PreloadOPCode=Preloaded OPCode is used
|
PreloadOPCode=Preloaded OPCode is used
|
||||||
AddRefInList=Display Customer/Vendor ref. info list (select list or combobox) and most of hyperlink.<br>Third Parties will appear with a name format of "CC12345 - SC45678 - The Big Company corp." instead of "The Big Company corp".
|
AddRefInList=Display Customer/Vendor ref. info list (select list or combobox) and most of hyperlink.<br>Third Parties will appear with a name format of "CC12345 - SC45678 - The Big Company corp." instead of "The Big Company corp".
|
||||||
|
AddVatInList=Display Customer/Vendor VAT number. info list (select list or combobox).
|
||||||
AddAdressInList=Display Customer/Vendor adress info list (select list or combobox)<br>Third Parties will appear with a name format of "The Big Company corp. - 21 jump street 123456 Big town - USA" instead of "The Big Company corp".
|
AddAdressInList=Display Customer/Vendor adress info list (select list or combobox)<br>Third Parties will appear with a name format of "The Big Company corp. - 21 jump street 123456 Big town - USA" instead of "The Big Company corp".
|
||||||
AddEmailPhoneTownInContactList=Display Contact email (or phones if not defined) and town info list (select list or combobox)<br>Contacts will appear with a name format of "Dupond Durand - dupond.durand@email.com - Paris" or "Dupond Durand - 06 07 59 65 66 - Paris" instead of "Dupond Durand".
|
AddEmailPhoneTownInContactList=Display Contact email (or phones if not defined) and town info list (select list or combobox)<br>Contacts will appear with a name format of "Dupond Durand - dupond.durand@email.com - Paris" or "Dupond Durand - 06 07 59 65 66 - Paris" instead of "Dupond Durand".
|
||||||
AskForPreferredShippingMethod=Ask for preferred shipping method for Third Parties.
|
AskForPreferredShippingMethod=Ask for preferred shipping method for Third Parties.
|
||||||
@ -1635,8 +1636,8 @@ NumberOfProductShowInSelect=Maximum number of products to show in combo select l
|
|||||||
ViewProductDescInFormAbility=Display product descriptions in lines of items (otherwise show description in a tooltip popup)
|
ViewProductDescInFormAbility=Display product descriptions in lines of items (otherwise show description in a tooltip popup)
|
||||||
OnProductSelectAddProductDesc=How to use the description of the products when adding a product as a line of a document
|
OnProductSelectAddProductDesc=How to use the description of the products when adding a product as a line of a document
|
||||||
AutoFillFormFieldBeforeSubmit=Auto fill the description input field with the description of product
|
AutoFillFormFieldBeforeSubmit=Auto fill the description input field with the description of product
|
||||||
DoNotAutofillButAutoConcat=Do not autofill the input field with description of product. Description of the product will be concatenated to the entered description automatically.
|
DoNotAutofillButAutoConcat=Do not autofill the input field with description of product. Description of the product will be concatenated to the entered description automatically.
|
||||||
DoNotUseDescriptionOfProdut=Description of the product will never be included into the description of lines of documents
|
DoNotUseDescriptionOfProdut=Description of the product will never be included into the description of lines of documents
|
||||||
MergePropalProductCard=Activate in product/service Attached Files tab an option to merge product PDF document to proposal PDF azur if product/service is in the proposal
|
MergePropalProductCard=Activate in product/service Attached Files tab an option to merge product PDF document to proposal PDF azur if product/service is in the proposal
|
||||||
ViewProductDescInThirdpartyLanguageAbility=Display products descriptions in forms in the language of the third party (otherwise in the language of the user)
|
ViewProductDescInThirdpartyLanguageAbility=Display products descriptions in forms in the language of the third party (otherwise in the language of the user)
|
||||||
UseSearchToSelectProductTooltip=Also if you have a large number of products (> 100 000), you can increase speed by setting constant PRODUCT_DONOTSEARCH_ANYWHERE to 1 in Setup->Other. Search will then be limited to start of string.
|
UseSearchToSelectProductTooltip=Also if you have a large number of products (> 100 000), you can increase speed by setting constant PRODUCT_DONOTSEARCH_ANYWHERE to 1 in Setup->Other. Search will then be limited to start of string.
|
||||||
|
|||||||
@ -189,7 +189,7 @@ Compression=Compression
|
|||||||
CommandsToDisableForeignKeysForImport=Commande pour désactiver les clés étrangères à l'importation
|
CommandsToDisableForeignKeysForImport=Commande pour désactiver les clés étrangères à l'importation
|
||||||
CommandsToDisableForeignKeysForImportWarning=Requis si vous voulez être en mesure de restaurer votre « dump » SQL plus tard
|
CommandsToDisableForeignKeysForImportWarning=Requis si vous voulez être en mesure de restaurer votre « dump » SQL plus tard
|
||||||
ExportCompatibility=Compatibilité du fichier d'exportation généré
|
ExportCompatibility=Compatibilité du fichier d'exportation généré
|
||||||
ExportUseMySQLQuickParameter=Utiliser le paramètre --quick
|
ExportUseMySQLQuickParameter=Utiliser le paramètre --quick
|
||||||
ExportUseMySQLQuickParameterHelp=Le paramètre '--quick' aide à réduire la consommation de RAM pour les longues listes
|
ExportUseMySQLQuickParameterHelp=Le paramètre '--quick' aide à réduire la consommation de RAM pour les longues listes
|
||||||
MySqlExportParameters=Paramètres de l'exportation MySQL
|
MySqlExportParameters=Paramètres de l'exportation MySQL
|
||||||
PostgreSqlExportParameters= Paramètres de l'exportation PostgreSQL
|
PostgreSqlExportParameters= Paramètres de l'exportation PostgreSQL
|
||||||
@ -336,7 +336,7 @@ MenuHandlers=Gestionnaires de menu
|
|||||||
MenuAdmin=Édition menu
|
MenuAdmin=Édition menu
|
||||||
DoNotUseInProduction=Ne pas utiliser en production
|
DoNotUseInProduction=Ne pas utiliser en production
|
||||||
ThisIsProcessToFollow=Procédure de mise à jour:
|
ThisIsProcessToFollow=Procédure de mise à jour:
|
||||||
ThisIsAlternativeProcessToFollow=Voici une procédure de configuration alternative
|
ThisIsAlternativeProcessToFollow=Voici une procédure de configuration alternative
|
||||||
StepNb=Étape %s
|
StepNb=Étape %s
|
||||||
FindPackageFromWebSite=Rechercher le paquet qui répond à votre besoin (par exemple sur le site web %s).
|
FindPackageFromWebSite=Rechercher le paquet qui répond à votre besoin (par exemple sur le site web %s).
|
||||||
DownloadPackageFromWebSite=Télécharger le package (par exemple depuis le site web officiel %s)
|
DownloadPackageFromWebSite=Télécharger le package (par exemple depuis le site web officiel %s)
|
||||||
@ -1341,6 +1341,7 @@ BrowserIsKO=Vous utilisez le navigateur %s. Ce navigateur est déconseillé pour
|
|||||||
PHPModuleLoaded=Le composant PHP %s est chargé
|
PHPModuleLoaded=Le composant PHP %s est chargé
|
||||||
PreloadOPCode=Le code OP préchargé est utilisé
|
PreloadOPCode=Le code OP préchargé est utilisé
|
||||||
AddRefInList=Afficher les références client/fournisseur dans les listes (listes déroulantes ou à autocomplétion) et les libellés des liens clicables.<br>Les tiers apparaîtront alors sous la forme "CC12345 - SC45678 - La big company coorp", au lieu de "La big company coorp".
|
AddRefInList=Afficher les références client/fournisseur dans les listes (listes déroulantes ou à autocomplétion) et les libellés des liens clicables.<br>Les tiers apparaîtront alors sous la forme "CC12345 - SC45678 - La big company coorp", au lieu de "La big company coorp".
|
||||||
|
AddVatInList=Afficher le numéro de TVA client/fournisseur dans les listes (listes déroulantes ou à autocomplétion).
|
||||||
AddAdressInList=Affiche les informations sur l’adresse du client/fournisseur (liste de sélection ou liste déroulante) <br> Les tiers apparaîtront avec le format de nom suivant: "The Big Company corp. - 21, rue du saut 123456 Big town - USA" au lieu de "The Big Company corp".
|
AddAdressInList=Affiche les informations sur l’adresse du client/fournisseur (liste de sélection ou liste déroulante) <br> Les tiers apparaîtront avec le format de nom suivant: "The Big Company corp. - 21, rue du saut 123456 Big town - USA" au lieu de "The Big Company corp".
|
||||||
AddEmailPhoneTownInContactList=Afficher l'adresse e-mail du contact (ou les téléphones si non définis) et la ville <br> Les contacts apparaîtront avec un nom au format "Dupond Durand - dupond.durand@email.com - Paris" ou "Dupond Durand - 06 07 59 65 66 - Paris" au lieu de "Dupond Durand".
|
AddEmailPhoneTownInContactList=Afficher l'adresse e-mail du contact (ou les téléphones si non définis) et la ville <br> Les contacts apparaîtront avec un nom au format "Dupond Durand - dupond.durand@email.com - Paris" ou "Dupond Durand - 06 07 59 65 66 - Paris" au lieu de "Dupond Durand".
|
||||||
AskForPreferredShippingMethod=Demander la méthode d'expédition préférée pour les Tiers
|
AskForPreferredShippingMethod=Demander la méthode d'expédition préférée pour les Tiers
|
||||||
@ -1351,7 +1352,7 @@ NumberingModules=Modèles de numérotation
|
|||||||
DocumentModules=Modèles de documents
|
DocumentModules=Modèles de documents
|
||||||
##### Module password generation
|
##### Module password generation
|
||||||
PasswordGenerationStandard=Renvoie un mot de passe généré selon l'algorythme interne de Dolibarr :%s caractères contenant chiffres et minuscules
|
PasswordGenerationStandard=Renvoie un mot de passe généré selon l'algorythme interne de Dolibarr :%s caractères contenant chiffres et minuscules
|
||||||
PasswordGenerationNone=Ne pas suggérer un mot de passe généré. Le mot de passe doit être entré manuellement.
|
PasswordGenerationNone=Ne pas suggérer un mot de passe généré. Le mot de passe doit être entré manuellement.
|
||||||
PasswordGenerationPerso=Renvoie un mot de passe en fonction d'une configuration personnalisée.
|
PasswordGenerationPerso=Renvoie un mot de passe en fonction d'une configuration personnalisée.
|
||||||
SetupPerso=Selon votre configuration
|
SetupPerso=Selon votre configuration
|
||||||
PasswordPatternDesc=Description du masque du mot de passe
|
PasswordPatternDesc=Description du masque du mot de passe
|
||||||
@ -1427,7 +1428,7 @@ OrdersNumberingModules=Modèles de numérotation des commandes
|
|||||||
OrdersModelModule=Modèles de document des commandes
|
OrdersModelModule=Modèles de document des commandes
|
||||||
FreeLegalTextOnOrders=Mention complémentaire sur les commandes
|
FreeLegalTextOnOrders=Mention complémentaire sur les commandes
|
||||||
WatermarkOnDraftOrders=Filigrane sur les brouillons de commandes (aucun si vide)
|
WatermarkOnDraftOrders=Filigrane sur les brouillons de commandes (aucun si vide)
|
||||||
ShippableOrderIconInList=Ajouter une icône dans la liste des commandes qui indique si la commande est expédiable.
|
ShippableOrderIconInList=Ajouter une icône dans la liste des commandes qui indique si la commande est expédiable.
|
||||||
BANK_ASK_PAYMENT_BANK_DURING_ORDER=Demander le compte bancaire cible durant la commande
|
BANK_ASK_PAYMENT_BANK_DURING_ORDER=Demander le compte bancaire cible durant la commande
|
||||||
##### Interventions #####
|
##### Interventions #####
|
||||||
InterventionsSetup=Configuration du module Interventions
|
InterventionsSetup=Configuration du module Interventions
|
||||||
@ -1617,7 +1618,7 @@ TestNotPossibleWithCurrentBrowsers=Une détection automatique n'est pas possible
|
|||||||
DefaultValuesDesc=Vous pouvez définir/forcer ici la valeur par défaut que vous voulez obtenir lorsque vous créez un nouvel enregistrement, et/ou les filtres par défaut ou ordre de tri des listes.
|
DefaultValuesDesc=Vous pouvez définir/forcer ici la valeur par défaut que vous voulez obtenir lorsque vous créez un nouvel enregistrement, et/ou les filtres par défaut ou ordre de tri des listes.
|
||||||
DefaultCreateForm=Valeurs par défaut (sur les formulaires de création)
|
DefaultCreateForm=Valeurs par défaut (sur les formulaires de création)
|
||||||
DefaultSearchFilters=Filtres de recherche par défaut
|
DefaultSearchFilters=Filtres de recherche par défaut
|
||||||
DefaultSortOrder=Ordre de tri par défaut
|
DefaultSortOrder=Ordre de tri par défaut
|
||||||
DefaultFocus=Champs par défaut ayant le focus
|
DefaultFocus=Champs par défaut ayant le focus
|
||||||
DefaultMandatory=Champs de formulaire obligatoires
|
DefaultMandatory=Champs de formulaire obligatoires
|
||||||
##### Products #####
|
##### Products #####
|
||||||
@ -1832,7 +1833,7 @@ ChequeReceiptsNumberingModule=Module de numérotation des bordereaux de remises
|
|||||||
MultiCompanySetup=Configuration du module Multi-société
|
MultiCompanySetup=Configuration du module Multi-société
|
||||||
##### Suppliers #####
|
##### Suppliers #####
|
||||||
SuppliersSetup=Configuration du module Fournisseurs
|
SuppliersSetup=Configuration du module Fournisseurs
|
||||||
SuppliersCommandModel=Modèle de commande fournisseur complet
|
SuppliersCommandModel=Modèle de commande fournisseur complet
|
||||||
SuppliersCommandModelMuscadet=Modèle de commande fournisseur complet (ancienne implémentation du modèle Cornas)
|
SuppliersCommandModelMuscadet=Modèle de commande fournisseur complet (ancienne implémentation du modèle Cornas)
|
||||||
SuppliersInvoiceModel=Modèle de facture fournisseur complet
|
SuppliersInvoiceModel=Modèle de facture fournisseur complet
|
||||||
SuppliersInvoiceNumberingModel=Modèles de numérotation des factures fournisseur
|
SuppliersInvoiceNumberingModel=Modèles de numérotation des factures fournisseur
|
||||||
@ -1867,7 +1868,7 @@ NbMajMin=Nombre minimal de caractères majuscules
|
|||||||
NbNumMin=Nombre minimal de caractères numériques
|
NbNumMin=Nombre minimal de caractères numériques
|
||||||
NbSpeMin=Nombre minimal de caractères spéciaux
|
NbSpeMin=Nombre minimal de caractères spéciaux
|
||||||
NbIteConsecutive=Nombre maximal de répétition des mêmes caractères
|
NbIteConsecutive=Nombre maximal de répétition des mêmes caractères
|
||||||
NoAmbiCaracAutoGeneration=Ne pas utiliser des caractères ambigus ("1","l","i","|","0","O") pour la génération automatique
|
NoAmbiCaracAutoGeneration=Ne pas utiliser des caractères ambigus ("1","l","i","|","0","O") pour la génération automatique
|
||||||
SalariesSetup=Configuration du module salaires
|
SalariesSetup=Configuration du module salaires
|
||||||
SortOrder=Ordre de tri
|
SortOrder=Ordre de tri
|
||||||
Format=Format
|
Format=Format
|
||||||
@ -1887,7 +1888,7 @@ GoOntoContactCardToAddMore=Rendez-vous sur l'onglet "Notifications" d'un tiers p
|
|||||||
Threshold=Seuil
|
Threshold=Seuil
|
||||||
BackupDumpWizard=Assistant pour créer le fichier dump de la base de données
|
BackupDumpWizard=Assistant pour créer le fichier dump de la base de données
|
||||||
BackupZipWizard=Assistant pour générer l'archive du répertoire documents
|
BackupZipWizard=Assistant pour générer l'archive du répertoire documents
|
||||||
SomethingMakeInstallFromWebNotPossible=L'installation de module externe est impossible depuis l'interface web pour la raison suivante :
|
SomethingMakeInstallFromWebNotPossible=L'installation de module externe est impossible depuis l'interface web pour la raison suivante :
|
||||||
SomethingMakeInstallFromWebNotPossible2=Pour cette raison, le processus de mise à jour décrit ici est une processus manuel que seul un utilisateur ayant des droits privilégiés peut réaliser.
|
SomethingMakeInstallFromWebNotPossible2=Pour cette raison, le processus de mise à jour décrit ici est une processus manuel que seul un utilisateur ayant des droits privilégiés peut réaliser.
|
||||||
InstallModuleFromWebHasBeenDisabledByFile=L'installation de module externe depuis l'application a été désactivé par l'administrator. Vous devez lui demander de supprimer le fichier <strong>%s</strong> pour permettre cette fonctionnalité.
|
InstallModuleFromWebHasBeenDisabledByFile=L'installation de module externe depuis l'application a été désactivé par l'administrator. Vous devez lui demander de supprimer le fichier <strong>%s</strong> pour permettre cette fonctionnalité.
|
||||||
ConfFileMustContainCustom=Installer ou créer un module externe à partir de l'application nécessite de sauvegarder les fichiers du module dans le répertoire <strong>%s</strong>. Pour que ce répertoire soit reconnu par Dolibarr, vous devez paramétrer le fichier de configuration <strong>conf/conf.php</strong> en ajoutant les 2 lignes suivantes :<br><strong>$dolibarr_main_url_root_alt='/custom'</strong><br><strong>$dolibarr_main_document_root_alt='%s/custom';</strong>
|
ConfFileMustContainCustom=Installer ou créer un module externe à partir de l'application nécessite de sauvegarder les fichiers du module dans le répertoire <strong>%s</strong>. Pour que ce répertoire soit reconnu par Dolibarr, vous devez paramétrer le fichier de configuration <strong>conf/conf.php</strong> en ajoutant les 2 lignes suivantes :<br><strong>$dolibarr_main_url_root_alt='/custom'</strong><br><strong>$dolibarr_main_document_root_alt='%s/custom';</strong>
|
||||||
|
|||||||
@ -183,6 +183,20 @@ if ($action == "setaddrefinlist") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Activate Set vat in list
|
||||||
|
if ($action == "setvatinlist") {
|
||||||
|
$setvatinlist = GETPOST('value', 'int');
|
||||||
|
$res = dolibarr_set_const($db, "SOCIETE_SHOW_VAT_IN_LIST", $setvatinlist, 'yesno', 0, '', $conf->entity);
|
||||||
|
if (!($res > 0)) {
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
if (!$error) {
|
||||||
|
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
||||||
|
} else {
|
||||||
|
setEventMessages($langs->trans("Error"), null, 'errors');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Activate Set adress in list
|
//Activate Set adress in list
|
||||||
if ($action == "setaddadressinlist") {
|
if ($action == "setaddadressinlist") {
|
||||||
$val = GETPOST('value', 'int');
|
$val = GETPOST('value', 'int');
|
||||||
@ -776,6 +790,20 @@ if (!empty($conf->global->SOCIETE_ADD_REF_IN_LIST)) {
|
|||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
print '<tr class="oddeven">';
|
||||||
|
print '<td width="80%">'.$langs->trans("AddVatInList").'</td>';
|
||||||
|
print '<td> </td>';
|
||||||
|
print '<td class="center">';
|
||||||
|
if (!empty($conf->global->SOCIETE_SHOW_VAT_IN_LIST)) {
|
||||||
|
print '<a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=setvatinlist&token='.newToken().'&value=0">';
|
||||||
|
print img_picto($langs->trans("Activated"), 'switch_on');
|
||||||
|
} else {
|
||||||
|
print '<a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=setvatinlist&token='.newToken().'&value=1">';
|
||||||
|
print img_picto($langs->trans("Disabled"), 'switch_off');
|
||||||
|
}
|
||||||
|
print '</a></td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td width="80%">'.$langs->trans("AddAdressInList").'</td>';
|
print '<td width="80%">'.$langs->trans("AddAdressInList").'</td>';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user