From ec536cb582dc133cecd5dac2a13e0e3d4b73f530 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 23 Feb 2008 16:04:44 +0000 Subject: [PATCH] Fix: Default VAT must be on --- htdocs/soc.php | 2 +- htdocs/societe.class.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; }