[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 27/151: Scenario test pour PDF_Operation Task
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 27/151: Scenario test pour PDF_Operation Task #9 - PDF_Operation : ajout des options |
Date: |
Sat, 4 Feb 2017 17:14:25 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 81daa2044da98488bcc7a6413e8c839b27c3b784
Author: Dany De Bontridder <address@hidden>
Date: Sun Nov 27 13:41:19 2016 +0100
Scenario test pour PDF_Operation
Task #9 - PDF_Operation : ajout des options
---
include/class/class_pdf_operation.php | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/include/class/class_pdf_operation.php
b/include/class/class_pdf_operation.php
index 20bb79d..d19a5ee 100644
--- a/include/class/class_pdf_operation.php
+++ b/include/class/class_pdf_operation.php
@@ -20,7 +20,7 @@
// Copyright Author Dany De Bontridder address@hidden(2003-2016)
-/* * *
+/**
* @file
* Detail Operation ACC + ANC , it will use Acc_Operation and Anc_Operation
*
@@ -36,8 +36,8 @@ class PDF_Operation extends PDF {
private $acc_detail; //!< Acc_Operation object
private $jr_id; //!< jrn.jr_id operation
-// private $pdf;
-
+ private $pdf;
+ var $cn;
function __construct($p_cn, $pjr_id) {
$this->cn = $p_cn;
$this->jr_id = $pjr_id;
@@ -445,5 +445,19 @@ class PDF_Operation extends PDF {
// if option contains EXTEND add document name + comment + action name
// if options contains ANC export ANC plan table
}
-
+ function get_pdf() {
+ return $this->pdf;
+ }
+ /**
+ * @brief export the PDF to a file and returns the filename
+ * @retun String filename
+ */
+ function get_pdf_filename() {
+
$file_name=$_ENV['TMP']."/"."acc_op".$this->acc_detail->det->jr_internal.".pdf";
+ $this->pdf->Output($file_name, "F");
+ return $file_name;
+ }
+ function download_pdf() {
+
$this->pdf->Output("acc_op".$this->acc_detail->det->jr_internal.".pdf");
+ }
}
- [Noalyss-commit] [noalyss] 29/151: Export Detail Operation Analytique + Document, (continued)
- [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
- [Noalyss-commit] [noalyss] 38/151: remove debug info, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 32/151: Performance : improve VERIF, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 27/151: Scenario test pour PDF_Operation Task #9 - PDF_Operation : ajout des options,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 46/151: update of the config.inc.example file, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 36/151: Performance : improve VERIF , Improve Accounting check, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 39/151: Improve Acc_Bilan::warning, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 37/151: remove debug info, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 43/151: Fix problem of accentuated char, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 40/151: Improve Performance Acc_Bilan::warning, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 34/151: Performance : improve VERIF , Affiche uniquement journaux incorrects, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 35/151: Performance : improve VERIF , Totaux Actif/Passif, Charge/Produit, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 51/151: Improve Doc, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 44/151: Problème htmlentities : charset par défaut différent entre version, Dany De Bontridder, 2017/02/04