[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 28/151: PDF Operation ajout détail opération
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 28/151: PDF Operation ajout détail opération pour GrandLivre ANC , export des pièces avec tampon |
Date: |
Sat, 4 Feb 2017 17:14:25 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 40cb07f075a4e85f95e4cd270927d38c9b1bee90
Author: Dany De Bontridder <address@hidden>
Date: Sun Nov 27 13:42:42 2016 +0100
PDF Operation ajout détail opération pour GrandLivre ANC , export des
pièces avec tampon
---
include/class/class_document_export.php | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/include/class/class_document_export.php
b/include/class/class_document_export.php
index 89bc9f5..a42979f 100644
--- a/include/class/class_document_export.php
+++ b/include/class/class_document_export.php
@@ -205,11 +205,11 @@ class Document_Export
}
// output
$output = $this->store_convert . '/stamp_' . $file_pdf;
-
+
// Concatenate stamp + file
$stmt = PDFTK . " " . escapeshellarg($this->store_convert . '/' .
$file_pdf) . ' stamp ' . $this->store_convert .
'/stamp.pdf output ' . $output;
-
+
passthru($stmt, $status);
echo $stmt;
if ($status <> 0)
@@ -221,6 +221,32 @@ class Document_Export
$cnt_feedback++;
continue;
}
+
+ // create the pdf with the detail of operation
+ $detail_operation = new PDF_Operation($cn,$jr_id);
+ $detail_operation->export_pdf(array("acc","anc"));
+
+ // output 2
+ $output2 = $this->store_convert . '/operation_' . $file_pdf;
+
+ // concatenate detail operation with the output
+ $stmt = PDFTK . " " . $detail_operation->get_pdf_file()."
".$output.
+ ' output ' . $output2;
+
+ passthru($stmt, $status);
+ echo $stmt;
+ if ($status <> 0)
+ {
+
+ $this->feedback[$cnt_feedback]['file'] = $file_pdf;
+ $this->feedback[$cnt_feedback]['message'] = _('Echec Ajout
detail ');
+ $this->feedback[$cnt_feedback]['error'] = $status;
+ $cnt_feedback++;
+ continue;
+ }
+ // overwrite old with new PDF
+ rename ($output2,$output);
+
// Move the PDF into another temp directory
$this->move_file($output, 'stamp_' . $file_pdf);
}
- [Noalyss-commit] [noalyss] 19/151: sécurité Task #8 - Sécurité protection SQL, (continued)
- [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, 2017/02/04
- [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 <=
- [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, 2017/02/04
- [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