[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 09/09: Task #1069 - PDF : saut de page non vo
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 09/09: Task #1069 - PDF : saut de page non voulu quand une ligne est trop longue |
Date: |
Sat, 06 Dec 2014 18:57:40 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 585b1c575dd5be99280be4d696020a3abfb27fa2
Author: Dany De Bontridder <address@hidden>
Date: Sat Dec 6 19:56:10 2014 +0100
Task #1069 - PDF : saut de page non voulu quand une ligne est trop longue
---
include/export_gl_pdf.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/export_gl_pdf.php b/include/export_gl_pdf.php
index dc43bce..41633f8 100644
--- a/include/export_gl_pdf.php
+++ b/include/export_gl_pdf.php
@@ -189,8 +189,9 @@ foreach ($a_poste as $poste)
$i++;
$pdf->LongLine($width[$i], 6, $detail['jr_internal'], 0, $lor[$i] );
$i++;
- /* limit set to 20 for the substring */
- $pdf->LongLine($width[$i], 6, mb_substr($detail['description'],0,120),
0,$lor[$i]);
+ /* limit set to 40 for the substring */
+ $triple_point = (mb_strlen($detail['description']) > 40 ) ? '...':'';
+ $pdf->LongLine($width[$i], 6,
mb_substr($detail['description'],0,40).$triple_point, 0,$lor[$i]);
$i++;
$pdf->Cell($width[$i], 6, $detail['jr_pj_number'], 0, 0, $lor[$i]);
$i++;
- [Noalyss-commit] [noalyss] branch master updated (6dec324 -> 585b1c5), Dany De Bontridder, 2014/12/06
- [Noalyss-commit] [noalyss] 01/09: Ajout du code stock, Dany De Bontridder, 2014/12/06
- [Noalyss-commit] [noalyss] 02/09: indent, Dany De Bontridder, 2014/12/06
- [Noalyss-commit] [noalyss] 04/09: Task #1065 - si autoliquidation montant incorrect : génération de documents, Dany De Bontridder, 2014/12/06
- [Noalyss-commit] [noalyss] 05/09: Task #1067 - Bilan : vérification Link to complete verification, Dany De Bontridder, 2014/12/06
- [Noalyss-commit] [noalyss] 06/09: bug if accounting is not given, Dany De Bontridder, 2014/12/06
- [Noalyss-commit] [noalyss] 09/09: Task #1069 - PDF : saut de page non voulu quand une ligne est trop longue,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/09: Task #1045 - Amélioration apparence : cosmetic, Dany De Bontridder, 2014/12/06
- [Noalyss-commit] [noalyss] 08/09: Task #1070 - Recherche action : filtre date devrait être les premiers champs Change search box, Dany De Bontridder, 2014/12/06
- [Noalyss-commit] [noalyss] 03/09: Task #1045 - Amélioration apparence :, Dany De Bontridder, 2014/12/06