[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 214/218: Bug : for customer without vat, ther
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 214/218: Bug : for customer without vat, there is not variable e_march_x_tva |
Date: |
Thu, 12 Sep 2019 15:59:12 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit c2cd16c76b64adac2acd048ccf74a537ed2730ad
Author: Dany De Bontridder <address@hidden>
Date: Thu Sep 12 20:44:29 2019 +0200
Bug : for customer without vat, there is not variable e_march_x_tva
---
include/class/document.class.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/class/document.class.php b/include/class/document.class.php
index a703f7b..a58f1de 100644
--- a/include/class/document.class.php
+++ b/include/class/document.class.php
@@ -949,6 +949,7 @@ class Document
/* if we do not use vat this var. is not set */
if ( !isset(${$tva}) ) return '';
if ( !isset (${'e_march'.$this->counter}) ) return "";
+ if ( !isset (${$tva}) ) return "";
// check that something is sold
if ( ${$price} == 0 || ${$qt} == 0
|| strlen(trim( $price )) ==0
@@ -964,6 +965,7 @@ class Document
$price='e_march'.$this->counter.'_price' ;
$tva='e_march'.$this->counter.'_tva_id';
if ( !isset (${'e_march'.$this->counter}) ) return "";
+ if ( !isset (${$tva}) ) return "";
// check that something is sold
if ( ${$price} == 0 || ${$qt} == 0
|| strlen(trim( $price )) ==0
@@ -981,6 +983,7 @@ class Document
$price='e_march'.$this->counter.'_price' ;
$tva='e_march'.$this->counter.'_tva_id';
if ( !isset (${'e_march'.$this->counter}) ) return "";
+ if ( !isset (${$tva}) ) return "";
// check that something is sold
if ( ${$price} == 0 || ${$qt} == 0
|| strlen(trim( $price )) ==0
- [Noalyss-commit] [noalyss] 189/218: Fiche.clasS.php fix broken merge, (continued)
- [Noalyss-commit] [noalyss] 189/218: Fiche.clasS.php fix broken merge, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 193/218: Php7.2 incompatibility, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 197/218: translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 192/218: Mantis #0001618: Journaux - choix du type en premier, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 183/218: Fix bug from merge, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 195/218: mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit Replace strip_tags , add a space before the "<", Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 196/218: Mantis #1693: CA - problème avec la balance croisée double, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 206/218: Cosmetic, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 203/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 207/218: #0001736: PHP7 comptability, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 214/218: Bug : for customer without vat, there is not variable e_march_x_tva,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 218/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 180/218: Mantis #0001614: Problème bilans , changement pour bilan ASBL, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 190/218: translate, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 81/218: adapt to 7.2 , error with sizeof, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 204/218: Cosmetic, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 208/218: #0001736: PHP7 comptability, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 213/218: Code cleaning : remove dead code, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 201/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12