noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/04: Bug export Ledger export CSV : Databas


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/04: Bug export Ledger export CSV : DatabaseCore, only the associative array is sent with Database::fetch_array(PGSQL_ASSOC)
Date: Thu, 27 Apr 2023 12:06:43 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4d1fbc425e53ed4f52c63dd43b894929b003da6b
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Apr 6 19:35:21 2023 +0200

    Bug export Ledger export CSV : DatabaseCore, only the associative array is 
sent with Database::fetch_array(PGSQL_ASSOC)
---
 include/export/export_ledger_csv.php | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/export/export_ledger_csv.php 
b/include/export/export_ledger_csv.php
index 513bf7670..de6462b57 100644
--- a/include/export/export_ledger_csv.php
+++ b/include/export/export_ledger_csv.php
@@ -156,11 +156,12 @@ if ( $get_option=="E")
             }
             $a_row=array();
             $type="text";
-            for ($j=0; $j<count($row)/2; $j++)
+            $idx_col=0;
+            foreach ($row as $col)
             {
-                if ($j>18)
-                    $type="number";
-                $export->add($row[$j], $type);
+                if ($idx_col> 18 ) $type="number";
+                $export->add($col,$type);
+                $idx_col++;
             }
             //info payment
             $ret_reconcile=$cn->execute('reconcile_date',array($row['jr_id']));



reply via email to

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