diff --git a/htdocs/soc.php b/htdocs/soc.php index 6ad442407c1..1e8debdd70c 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -39,7 +39,7 @@ $langs->load("bills"); $socid = isset($_GET["socid"])?$_GET["socid"]:''; // Sécurité d'accès client et commerciaux -$socid = restrictedArea($user, 'societe', $socid); +$result = restrictedArea($user, 'societe', $socid); // Initialisation de l'objet Societe $soc = new Societe($db); diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 13ba048bb4c..f105106a2c6 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -119,6 +119,7 @@ class Societe $this->forme_juridique_code = 0; $this->prefixCustomerIsRequired = 0; $this->prefixSupplierIsRequired = 0; + $this->tva_assuj = 1; return 1; }