noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 13/13: Bug #1 CFGTVA : impossible d'effacer u


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 13/13: Bug #1 CFGTVA : impossible d'effacer un taux de TVA
Date: Sat, 15 Sep 2018 17:18:57 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit b9b28694d22ebad9cb7743cf135d1df67a0fdfad
Author: Dany De Bontridder <address@hidden>
Date:   Sat Sep 15 23:17:23 2018 +0200

    Bug #1 CFGTVA : impossible d'effacer un taux de TVA
---
 include/class/tva_rate_mtable.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class/tva_rate_mtable.class.php 
b/include/class/tva_rate_mtable.class.php
index 216dd0f..804672f 100644
--- a/include/class/tva_rate_mtable.class.php
+++ b/include/class/tva_rate_mtable.class.php
@@ -272,7 +272,7 @@ class Tva_Rate_MTable extends Manage_Table_SQL
         if ( $count < 2) {
             throw new Exception(_("Vous ne pouvez pas effacer tous les taux. 
Si votre société n'utilise pas la TVA, changer dans le menu société"));
         }
-
+        $cn->exec_sql("delete from tva_rate where tva_id=$1", 
[$this->table->tva_id]);
     }
 
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]