[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 09/39: Compatility PHP7.4
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 09/39: Compatility PHP7.4 |
Date: |
Sat, 11 Jul 2020 13:20:37 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit e7f4184ef8b71f6bf51050181f0e064d1d81cb30
Author: Dany De Bontridder <dany@alchimerys.be>
AuthorDate: Sun May 24 19:07:41 2020 +0200
Compatility PHP7.4
---
include/class/acc_ledger.class.php | 36 ++++++++--------------
include/class/acc_ledger_history_generic.class.php | 2 +-
2 files changed, 13 insertions(+), 25 deletions(-)
diff --git a/include/class/acc_ledger.class.php
b/include/class/acc_ledger.class.php
index b2f05da..d43dcd9 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -2416,22 +2416,17 @@ class Acc_Ledger extends jrn_def_sql
switch ($this->jrn_def_type)
{
case 'ACH':
-
$this->jrn_def_fiche_cred=(isset($ACH_FICHECRED))?join($ACH_FICHECRED,
- ','):'';
-
$this->jrn_def_fiche_deb=(isset($ACH_FICHEDEB))?join($ACH_FICHEDEB,
- ','):"";
+
$this->jrn_def_fiche_cred=(isset($ACH_FICHECRED))?join(',',$ACH_FICHECRED):'';
+
$this->jrn_def_fiche_deb=(isset($ACH_FICHEDEB))?join(',',$ACH_FICHEDEB):"";
break;
case 'VEN':
-
$this->jrn_def_fiche_cred=(isset($VEN_FICHECRED))?join($VEN_FICHECRED,
- ','):'';
-
$this->jrn_def_fiche_deb=(isset($VEN_FICHEDEB))?join($VEN_FICHEDEB,
- ','):"";
+
$this->jrn_def_fiche_cred=(isset($VEN_FICHECRED))?join(',',$VEN_FICHECRED):'';
+
$this->jrn_def_fiche_deb=(isset($VEN_FICHEDEB))?join(',',$VEN_FICHEDEB):"";
break;
case 'ODS':
$this->jrn_def_class_deb=$p_jrn_class_deb;
-
$this->jrn_def_fiche_deb=(isset($ODS_FICHEDEB))?join($ODS_FICHEDEB,
- ','):''; ;
+
$this->jrn_def_fiche_deb=(isset($ODS_FICHEDEB))?join(',',$ODS_FICHEDEB):''; ;
$this->jrn_def_fiche_cred=null;
break;
@@ -2440,8 +2435,7 @@ class Acc_Ledger extends jrn_def_sql
$result=$a->get_by_qcode(trim(strtoupper($_POST['bank'])),
false);
$bank=$a->id;
$this->jrn_def_bank=$bank;
-
$this->jrn_def_fiche_deb=(isset($FIN_FICHEDEB))?join($FIN_FICHEDEB,
- ','):"";
+
$this->jrn_def_fiche_deb=(isset($FIN_FICHEDEB))?join(',',$FIN_FICHEDEB):"";
if ($result==-1)
throw new Exception(_("Aucun compte en banque n'est
donné"));
$this->jrn_def_num_op=(isset($numb_operation))?1:0;
@@ -2605,22 +2599,17 @@ class Acc_Ledger extends jrn_def_sql
switch ($this->jrn_def_type)
{
case 'ACH':
-
$this->jrn_def_fiche_cred=(isset($ACH_FICHECRED))?join($ACH_FICHECRED,
- ','):'';
-
$this->jrn_def_fiche_deb=(isset($ACH_FICHEDEB))?join($ACH_FICHEDEB,
- ','):"";
+
$this->jrn_def_fiche_cred=(isset($ACH_FICHECRED))?join(',',$ACH_FICHECRED):'';
+
$this->jrn_def_fiche_deb=(isset($ACH_FICHEDEB))?join(',',$ACH_FICHEDEB):"";
break;
case 'VEN':
-
$this->jrn_def_fiche_cred=(isset($VEN_FICHECRED))?join($VEN_FICHECRED,
- ','):'';
-
$this->jrn_def_fiche_deb=(isset($VEN_FICHEDEB))?join($VEN_FICHEDEB,
- ','):"";
+
$this->jrn_def_fiche_cred=(isset($VEN_FICHECRED))?join(',',$VEN_FICHECRED):'';
+
$this->jrn_def_fiche_deb=(isset($VEN_FICHEDEB))?join(',',$VEN_FICHEDEB):"";
break;
case 'ODS':
$this->jrn_def_class_deb=$p_jrn_class_deb;
-
$this->jrn_def_fiche_deb=(isset($ODS_FICHEDEB))?join($ODS_FICHEDEB,
- ','):''; ;
+
$this->jrn_def_fiche_deb=(isset($ODS_FICHEDEB))?join(',',$ODS_FICHEDEB):''; ;
$this->jrn_def_fiche_cred=null;
break;
case 'FIN':
@@ -2628,8 +2617,7 @@ class Acc_Ledger extends jrn_def_sql
$result=$a->get_by_qcode(trim(strtoupper($_POST['bank'])),
false);
$bank=$a->id;
$this->jrn_def_bank=$bank;
-
$this->jrn_def_fiche_deb=(isset($FIN_FICHEDEB))?join($FIN_FICHEDEB,
- ','):"";
+
$this->jrn_def_fiche_deb=(isset($FIN_FICHEDEB))?join(',',$FIN_FICHEDEB):"";
if ($result==-1)
throw new Exception(_("Aucun compte en banque n'est
donné"));
$this->jrn_def_num_op=(isset($numb_operation))?1:0;
diff --git a/include/class/acc_ledger_history_generic.class.php
b/include/class/acc_ledger_history_generic.class.php
index 97207cf..54ee831 100644
--- a/include/class/acc_ledger_history_generic.class.php
+++ b/include/class/acc_ledger_history_generic.class.php
@@ -417,7 +417,7 @@ class Acc_Ledger_History_Generic extends Acc_Ledger_History
function get_rowSimple($trunc=0, $p_limit=-1, $p_offset=-1)
{
global $g_user;
- $jrn=" jrn_def_id in (".join($this->ma_ledger, ",").")";
+ $jrn=" jrn_def_id in (".join(',',$this->ma_ledger).")";
$periode=sql_filter_per($this->db, $this->m_from, $this->m_to, 'p_id',
'jr_tech_per');
- [Noalyss-commit] [noalyss] branch master updated (aa78d59 -> 3450d5f), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 01/39: Pierre-François P. Ajout des parenthèses dans le calcul des champs numériques, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 05/39: Code : add connection by DSN, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 07/39: Remove DB connect with DSN, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 04/39: Fix bug in recover password Include sendmail.class.php fix bug sending email with file (compatibility PHP7), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 10/39: Task #1532 : detail payment, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 11/39: #1583: [Cosmétique] Liste de catégories de fiches, espace avant les (), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 08/39: #1798 French calendar, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 09/39: Compatility PHP7.4,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/39: Bug Database:lo_unlink unknown variable, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 06/39: Compatibility postgresql 12, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 03/39: Fix problem with redirect, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 12/39: CSS : new background-selected for a row in table, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 16/39: task #0001413: Duplication d'opération 2 - le retour, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 18/39: Task #1803 : export detail of an operation in PDF, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 14/39: task #0001801: CARD : mise à jour fiche , effacement et modification, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 15/39: Select Box : improve position in floating element, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 17/39: task #0001801: CARD : mise à jour fiche , effacement et modification, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 25/39: Code : not direct access to $_GET Bug : javascript didn't work, Dany De Bontridder, 2020/07/11