[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 23/151: Export en PDF d'operation : PDF_Opera
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 23/151: Export en PDF d'operation : PDF_Operation::print_section Task #10 - PDF_Operation : ajout titre Analytique |
Date: |
Sat, 4 Feb 2017 17:14:25 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit a5e20fba30bb2fe15b6bb41e60358542f7018ea2
Author: Dany De Bontridder <address@hidden>
Date: Sat Nov 26 23:00:28 2016 +0100
Export en PDF d'operation : PDF_Operation::print_section
Task #10 - PDF_Operation : ajout titre Analytique
---
include/class/class_pdf_operation.php | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/include/class/class_pdf_operation.php
b/include/class/class_pdf_operation.php
index 54cb8f3..aa3bdbe 100644
--- a/include/class/class_pdf_operation.php
+++ b/include/class/class_pdf_operation.php
@@ -105,8 +105,7 @@ class PDF_Operation extends PDF {
$tiers_id=$this->acc_detail->det->array[0]['qs_client'];
}
$this->pdf->SetFont('DejaVu', 'B', 10);
- $this->pdf->write_cell(60,8,_("Résumé"),"1");
- $this->pdf->line_new(8);
+ $this->print_section(_("Résumé"));
$fiche=new Fiche($this->cn,$tiers_id);
$this->pdf->SetFont('DejaVu', 'B', 6);
@@ -229,14 +228,17 @@ class PDF_Operation extends PDF {
$this->pdf->line_new(10);
}
+ private function print_section($p_section) {
+ $this->pdf->SetFont('DejaVu', 'B', 10);
+ $this->pdf->write_cell(60,8,$p_section,"1");
+ $this->pdf->line_new(8);
+ }
private function print_acc_writing(){
$obj1=new Acc_Operation($this->cn);
$obj1->set_id($this->jr_id);
$obj=$obj1->get();
$nb=count($obj->det->array);
- $this->pdf->SetFont('DejaVu', 'B', 10);
- $this->pdf->write_cell(60,8,_("Ecriture comptable"),"1");
- $this->pdf->line_new(8);
+ $this->print_section(_("Ecriture comptable"));
bcscale(4);
$width=array(10,40,40,50,30,10);
@@ -279,7 +281,7 @@ class PDF_Operation extends PDF {
for ($i = 0; $i<$nb; $i++) {
$this->pdf->write_cell($width,8,$pa_plan[$i]['pa_name'],1,"C",1);
}
- $this->pdf->write_cell($width,8,_('ANC'),1,"C",1);
+ $this->pdf->write_cell($width,8,_('Montant'),1,"C",1);
$this->pdf->SetFillColor(0,0,0);
$this->pdf->line_new(8);
}
@@ -394,12 +396,15 @@ class PDF_Operation extends PDF {
// . For each j_id print all the concerned rows ordered by plan
$nb=count($a_jrnxId);
+ $flag_print_section=0;
for ($index = 0; $index<$nb; $index++) {
$count_ana=$this->cn->get_value("select count(*)
from public.operation_analytique
where j_id=$1
",array($a_jrnxId[$index]["j_id"]));
if ($count_ana == 0 ) continue;
+ if ($flag_print_section==0) $this->print_section (_("Détail"));
+ $flag_print_section=1;
$this->print_anc_detail($a_jrnxId[$index]["j_id"],$a_plan);
}
@@ -408,7 +413,7 @@ class PDF_Operation extends PDF {
/**
* @brief export operation into a PDF
*
- * @param type $p_option String containing EXTEND ACC ANC or a combination
+ * @param String $p_option containing EXTEND ACC ANC or a combination
*/
function export_pdf($p_option) {
- [Noalyss-commit] [noalyss] 15/151: Performance : replace Anc_Grandlivre->display_html with Anc_Grandlivre->load, (continued)
- [Noalyss-commit] [noalyss] 15/151: Performance : replace Anc_Grandlivre->display_html with Anc_Grandlivre->load, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 14/151: adapt for php 7.0, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 06/151: improve CSS theme, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 21/151: Documentation Task #2 - Documentation nouveau code, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 18/151: adapt for php 7.0, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 16/151: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 19/151: sécurité Task #8 - Sécurité protection SQL, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 24/151: Scenario pour dév. de comptabilité analytique, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 17/151: add newline at the end of file, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 20/151: Database Ajout d'une fonction pour retirer une seule ligne, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 23/151: Export en PDF d'operation : PDF_Operation::print_section Task #10 - PDF_Operation : ajout titre Analytique,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 26/151: Scenario test pour PDF_Operation, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 30/151: syntax, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 29/151: Export Detail Operation Analytique + Document, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 25/151: Ajout options Task #9 - PDF_Operation : ajout des options, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 12/151: Clean code, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 28/151: PDF Operation ajout détail opération pour GrandLivre ANC , export des pièces avec tampon, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 31/151: Remove useless file, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 33/151: Performance : improve VERIF , change query pour fiche utilisé avec 2 postes, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 42/151: Export PDF : check files properly, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 41/151: Fix config.inc.php : add carriage return, Dany De Bontridder, 2017/02/04