noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/05: Fix CSV export of ANC / full operation


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/05: Fix CSV export of ANC / full operations
Date: Mon, 24 Nov 2014 19:39:37 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 571e0fd7e4222e23cee18d0ee2e99639b2606c92
Author: Vincent Danjean <address@hidden>
Date:   Tue Nov 18 21:03:23 2014 +0100

    Fix CSV export of ANC / full operations
    
    - keep a csv file, even in case of empty output
      => it is easier to manage automatically
    - add the 'row' field in order to be able to merge the export
      of several different PCA
---
 include/class_anc_grandlivre.php |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/include/class_anc_grandlivre.php b/include/class_anc_grandlivre.php
index 86ab1cd..0fc0bb4 100644
--- a/include/class_anc_grandlivre.php
+++ b/include/class_anc_grandlivre.php
@@ -104,6 +104,7 @@ class Anc_GrandLivre extends Anc_Print
        jr_comment,
         jr_pj_number,
        jr_internal,
+        oa_row,
        case when oa_debit='t' then 'D' else 'C' end,
        oa_amount
        from operation_analytique as B join poste_analytique using(po_id)
@@ -290,12 +291,6 @@ class Anc_GrandLivre extends Anc_Print
 
         }
 
-        if ( empty($array) )
-        {
-            $r.= _("aucune donnée");
-            return $r;
-        }
-
         $ix=0;$prev='xx';
        $tot_deb=$tot_cred=0;
         $aheader=array();
@@ -306,6 +301,7 @@ class Anc_GrandLivre extends Anc_Print
         $aheader[]=array("title"=>'libelle','type'=>'string');
         $aheader[]=array("title"=>'Pièce','type'=>'string');
         $aheader[]=array("title"=>'Num.interne','type'=>'string');
+        $aheader[]=array("title"=>'row','type'=>'num');
         $aheader[]=array("title"=>'Debit','type'=>'string');
         $aheader[]=array("title"=>'Credit','type'=>'num');
         Impress::array_to_csv($array, $aheader);



reply via email to

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