[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/12: Task #3 - Problem avec export PDF depu
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 03/12: Task #3 - Problem avec export PDF depuis COMPTA/PRINT/PRINTJRN Cannot remove a shared note |
Date: |
Mon, 25 Jan 2016 22:58:36 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 36fe8bfd6aec827347547da7798eee42dee36361
Author: Dany De Bontridder <address@hidden>
Date: Sun Jan 24 15:15:06 2016 +0100
Task #3 - Problem avec export PDF depuis COMPTA/PRINT/PRINTJRN
Cannot remove a shared note
---
include/class/class_print_ledger_fin.php | 40 ++++++++++++++--------------
include/class/class_print_ledger_misc.php | 22 ++++++++--------
2 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/include/class/class_print_ledger_fin.php
b/include/class/class_print_ledger_fin.php
index 2be1f7e..e1d9519 100644
--- a/include/class/class_print_ledger_fin.php
+++ b/include/class/class_print_ledger_fin.php
@@ -48,43 +48,43 @@ class Print_Ledger_Financial extends PDF
//Arial bold 12
$this->SetFont('DejaVu', 'B', 12);
//Title
- $this->write_cell(0,10,$this->dossier, 'B', 0, 'C');
+ $this->Cell(0,10,$this->dossier, 'B', 0, 'C');
//Line break
$this->SetFont('DejaVu', 'B', 7);
- $this->line_new(10);
- $this->write_cell(40,6,_('report'),0,0,'R');
- $this->write_cell(40,6,nbm($this->rap_amount),0,0,'R');
- $this->line_new(6);
+ $this->Ln(10);
+ $this->Cell(40,6,_('report'),0,0,'R');
+ $this->Cell(40,6,nbm($this->rap_amount),0,0,'R');
+ $this->Ln(6);
$this->SetFont('DejaVu', 'B', 7);
- $this->write_cell(15,6,'Piece');
- $this->write_cell(10,6,'Date');
- $this->write_cell(15,6,'Interne');
- $this->write_cell(40,6,'Dest/Orig');
- $this->write_cell(80,6,'Commentaire');
- $this->write_cell(20,6,'Montant');
- $this->line_new(6);
+ $this->Cell(15,6,'Piece');
+ $this->Cell(10,6,'Date');
+ $this->Cell(15,6,'Interne');
+ $this->Cell(40,6,'Dest/Orig');
+ $this->Cell(80,6,'Commentaire');
+ $this->Cell(20,6,'Montant');
+ $this->Ln(6);
}
function Footer()
{
$this->SetFont('DejaVu', 'B', 7);
- $this->write_cell(40,6,_('Total page'),0,0,'R');
- $this->write_cell(40,6,nbm($this->tp_amount),0,0,'R');
+ $this->Cell(40,6,_('Total page'),0,0,'R');
+ $this->Cell(40,6,nbm($this->tp_amount),0,0,'R');
bcscale(2);
$this->rap_amount=bcadd($this->rap_amount,$this->tp_amount);
- $this->write_cell(40,6,_('Total à reporter'),0,0,'R');
- $this->write_cell(40,6,nbm($this->rap_amount),0,0,'R');
+ $this->Cell(40,6,_('Total à reporter'),0,0,'R');
+ $this->Cell(40,6,nbm($this->rap_amount),0,0,'R');
$this->tp_amount=0;
//Position at 2 cm from bottom
$this->SetY(-20);
//Arial italic 8
$this->SetFont('Arial', 'I', 8);
//Page number
- $this->write_cell(0,8,'Date '.$this->date." - Page
".$this->PageNo().'/{nb}',0,0,'C');
- $this->line_new(3);
+ $this->Cell(0,8,'Date '.$this->date." - Page
".$this->PageNo().'/{nb}',0,0,'C');
+ $this->Ln(3);
// Created by NOALYSS
- $this->write_cell(0,8,'Created by NOALYSS, online on
http://www.noalyss.eu',0,0,'C',false,'http://www.noalyss.eu');
+ $this->Cell(0,8,'Created by NOALYSS, online on
http://www.noalyss.eu',0,0,'C',false,'http://www.noalyss.eu');
}
/**
@@ -108,7 +108,7 @@ class Print_Ledger_Financial extends PDF
$this->write_cell(40,5,$name,0,'L');
- $this->write_cell(80,5,$row['comment'],0,'L');
+ $this->LongLine(80,5,$row['comment'],0,'L');
$amount=$this->cn->get_value('select qf_amount from quant_fin
where jr_id=$1',array( $row['id']));
$this->write_cell(20,5,sprintf('%s',nbm($amount)),0,0,'R');
$this->line_new(5);
diff --git a/include/class/class_print_ledger_misc.php
b/include/class/class_print_ledger_misc.php
index 2f7b377..f4c986d 100644
--- a/include/class/class_print_ledger_misc.php
+++ b/include/class/class_print_ledger_misc.php
@@ -36,17 +36,17 @@ class Print_Ledger_Misc extends PDF
//Arial bold 12
$this->SetFont('DejaVu', 'B', 12);
//Title
- $this->write_cell(0,10,$this->dossier, 'B', 0, 'C');
+ $this->Cell(0,10,$this->dossier, 'B', 0, 'C');
//Line break
$this->line_new(20);
$this->SetFont('DejaVu', 'B', 7);
- $this->write_cell(30,6,'Piece');
- $this->write_cell(10,6,'Date');
- $this->write_cell(20,6,'Interne');
- $this->write_cell(25,6,'Tiers');
- $this->write_cell(80,6,'Commentaire');
- $this->write_cell(15,6,'Montant');
- $this->line_new(6);
+ $this->Cell(30,6,'Piece');
+ $this->Cell(10,6,'Date');
+ $this->Cell(20,6,'Interne');
+ $this->Cell(25,6,'Tiers');
+ $this->Cell(80,6,'Commentaire');
+ $this->Cell(15,6,'Montant');
+ $this->Ln(6);
}
function Footer()
@@ -56,10 +56,10 @@ class Print_Ledger_Misc extends PDF
//Arial italic 8
$this->SetFont('Arial', 'I', 8);
//Page number
- $this->write_cell(0,8,'Date '.$this->date." - Page
".$this->PageNo().'/{nb}',0,0,'C');
- $this->line_new(3);
+ $this->Cell(0,8,'Date '.$this->date." - Page
".$this->PageNo().'/{nb}',0,0,'C');
+ $this->Ln(3);
// Created by NOALYSS
- $this->write_cell(0,8,'Created by NOALYSS, online on
http://www.noalyss.eu',0,0,'C',false,'http://www.noalyss.eu');
+ $this->Cell(0,8,'Created by NOALYSS, online on
http://www.noalyss.eu',0,0,'C',false,'http://www.noalyss.eu');
}
/**
address@hidden print the pdf
- [Noalyss-commit] [noalyss] branch master updated (8f47684 -> 01d9cf0), Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 05/12: Update comment for belong_ledger, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 01/12: Problem read README.export-PDF, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 07/12: Debugging info to remove, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 03/12: Task #3 - Problem avec export PDF depuis COMPTA/PRINT/PRINTJRN Cannot remove a shared note,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 04/12: #1251 : impression PDF Les Headers et Footer ne doivent pas utiliser write_celle et ln, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 10/12: Compute the height of a MultiCell and check is a page must be added, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 06/12: Update unit-test to new structure, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 12/12: Merge branch 'rel6912-export-pdf', Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 11/12: Fix problem with PDF and the empty page due a wrong page break, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 02/12: #1251 impression PDF Remove function Cell that fct cannot be overloaded Change Cell by write_cell change ln by print_row, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 09/12: HTML doc, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 08/12: update doc, Dany De Bontridder, 2016/01/25