noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 13/29: Code improve : Acc_Balance utilise PDF


From: dwm
Subject: [Noalyss-commit] [noalyss] 13/29: Code improve : Acc_Balance utilise PDF_CORE::is_fill
Date: Sat, 6 Jan 2024 05:59:14 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit e58c2ae378ff1ab6223770d5ca934404e6cecdaa
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Dec 17 12:07:44 2023 +0100

    Code improve : Acc_Balance utilise PDF_CORE::is_fill
---
 include/export/export_balance_pdf.php | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/include/export/export_balance_pdf.php 
b/include/export/export_balance_pdf.php
index f60903f7c..d82bcd8ba 100644
--- a/include/export/export_balance_pdf.php
+++ b/include/export/export_balance_pdf.php
@@ -210,13 +210,7 @@ if (!empty($array)) {
             $nlvl3[$a] = bcadd($nlvl3[$a], $r[$a]);
         }
 
-        if ($i % 2 == 0) {
-            $pdf->SetFillColor(220, 221, 255);
-            $fill = 1;
-        } else {
-            $pdf->SetFillColor(0, 0, 0);
-            $fill = 0;
-        }
+        $fill=$pdf->is_fill($i);
 
         $pdf->LongLine(30, 6, $value['poste'], 0, 'L', $fill);
         $pdf->LongLine(60, 6, $value['label'], 0, 'L', $fill);



reply via email to

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