noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 79/219: PRINTGL : do not print accounting wit


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 79/219: PRINTGL : do not print accounting without operation
Date: Mon, 18 Dec 2017 13:22:41 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 53cad342d79e3f914b4d643bbc28928ea1b457eb
Author: Dany De Bontridder <address@hidden>
Date:   Tue Oct 10 15:40:43 2017 +0200

    PRINTGL : do not print accounting without operation
---
 include/export/export_gl_pdf.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/export/export_gl_pdf.php b/include/export/export_gl_pdf.php
index befc3e9..6d3faa5 100644
--- a/include/export/export_gl_pdf.php
+++ b/include/export/export_gl_pdf.php
@@ -72,7 +72,7 @@ $sql=$sql.$cond_poste.'  order by pcm_val::text';
 $a_poste=$cn->get_array($sql);
 
 $pdf = new PDF($cn);
-$pdf->setDossierInfo("  Periode : ".$from_periode." - ".$to_periode);
+$pdf->setDossierInfo(_("  Periode : ").$from_periode." - ".$to_periode);
 $pdf->AliasNbPages();
 $pdf->AddPage();
 $pdf->setTitle("Grand Livre",true);
@@ -85,7 +85,7 @@ if ( count($a_poste) == 0 )
 }
 
 // Header
-$header = array( "Date", "Référence", "Libellé", "Pièce","Let", "Débit", 
"Crédit", "Solde" );
+$header = array( _("Date"), _("Référence"), _("Libellé"), _("Pièce"),_("Let"), 
_("Débit"), _("Crédit"), _("Solde") );
 // Left or Right aligned
 $lor    = array( "L"   , "L"        , "L"      , "L"    , "R",   "R"    , "R"  
   , "R"     );
 // Column widths (in mm)
@@ -101,7 +101,7 @@ foreach ($a_poste as $poste)
 
   $array1=$Poste->get_row_date($from_periode,$to_periode,$l,$s);
   // don't print empty account
-  if ( count($array1) == 0 )
+  if ( count($array1[0]) == 0 )
     {
         continue;
     }



reply via email to

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