diff --git a/dev/setup/codesniffer/ruleset.xml b/dev/setup/codesniffer/ruleset.xml
index 2a58094717f..32a938662e6 100644
--- a/dev/setup/codesniffer/ruleset.xml
+++ b/dev/setup/codesniffer/ruleset.xml
@@ -9,6 +9,7 @@
htdocs/includeshtdocs/conf.php*/nltechno*
+ */htdocs/includes
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index a29882601de..48126c9afed 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -1622,7 +1622,7 @@ class Form
* @param int $hidepriceinlabel 1=Hide prices in label
* @return void
*/
- function select_produits($selected='', $htmlname='productid', $filtertype='', $limit=20, $price_level=0, $status=1, $finished=2, $selected_input_value='', $hidelabel=0, $ajaxoptions=array(), $socid=0, $showempty='1', $forcecombo=0, $morecss='', $hidepriceinlabel)
+ function select_produits($selected='', $htmlname='productid', $filtertype='', $limit=20, $price_level=0, $status=1, $finished=2, $selected_input_value='', $hidelabel=0, $ajaxoptions=array(), $socid=0, $showempty='1', $forcecombo=0, $morecss='', $hidepriceinlabel=0)
{
global $langs,$conf;
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index 71f2ae41536..accff491427 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -765,7 +765,7 @@ else
* Creation
*/
$private=GETPOST("private","int");
- if (! empty($conf->global->MAIN_THIRDPARTY_CREATION_INDIVIDUAL) && ! isset($_GET['private']) && ! isset($_POST['private'])) $private=1;
+ if (! empty($conf->global->THIRDPARTY_DEFAULT_CREATE_CONTACT) && ! isset($_GET['private']) && ! isset($_POST['private'])) $private=1;
if (empty($private)) $private=0;
// Load object modCodeTiers
@@ -1135,7 +1135,7 @@ else
// Vat is used
print '
'.fieldLabel('VATIsUsed','assujtva_value').'
';
print '
';
- print $form->selectyesno('assujtva_value',1,1); // Assujeti par defaut en creation
+ print $form->selectyesno('assujtva_value',(isset($conf->global->THIRDPARTY_DEFAULT_USEVAT)?$conf->global->THIRDPARTY_DEFAULT_USEVAT:1),1); // Assujeti par defaut en creation
print '
';
print '
'.fieldLabel('VATIntra','intra_vat').'
';
print '
';
@@ -1166,6 +1166,30 @@ else
print '
';
print '
';
+ // 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 '
'."\n";
$sortparam=(empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT); // NONE means we keep sort of original array, so we sort on position. ASC, means next function will sort on label.
@@ -1195,30 +1219,6 @@ else
print '
';
- // 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 '