[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 08/12: Bug : for customer without vat, there
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 08/12: Bug : for customer without vat, there is not variable e_march_x_tva |
Date: |
Thu, 12 Sep 2019 16:01:24 -0400 (EDT) |
sparkyx pushed a commit to branch master
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] branch master updated (dcd880f -> f4d6c5c), Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 03/12: PDFLand has now his own file, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 05/12: Periode : order by date asc, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 01/12: #0001736: PHP7 comptability, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 02/12: #0001736: PHP7 comptability, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 04/12: Data_SQL database connexion private, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 08/12: Bug : for customer without vat, there is not variable e_march_x_tva,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/12: Code cleaning : remove dead code, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 06/12: Periode : when searching for a ledger , you can set a periode, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 12/12: Merge branch 'dev7109', Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 11/12: Mantis #0001442: CA - facilité de manipulation - effacement Button for cleaning detail analytique in operation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 10/12: Version set to 7.1, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 09/12: Improve Doxygen, Dany De Bontridder, 2019/09/12