[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/04: #1256 : add a new tag to get in the ge
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 03/04: #1256 : add a new tag to get in the generated document the label of payment (COMM_PAYMENT) |
Date: |
Thu, 21 Jan 2016 09:14:22 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 19868b00643ba6dcd95821a791c091bfba1ed1e8
Author: Dany De Bontridder <address@hidden>
Date: Thu Jan 14 13:12:50 2016 +0100
#1256 : add a new tag to get in the generated document the label of payment
(COMM_PAYMENT)
---
contrib/document_test/all_tags.odt | Bin 41045 -> 41718 bytes
doc/manuel-fr.odt | Bin 107018 -> 107144 bytes
doc/manuel-fr.pdf | Bin 480736 -> 481055 bytes
include/class/class_document.php | 8 ++++++--
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/contrib/document_test/all_tags.odt
b/contrib/document_test/all_tags.odt
index 1b6afbb..7c81d88 100644
Binary files a/contrib/document_test/all_tags.odt and
b/contrib/document_test/all_tags.odt differ
diff --git a/doc/manuel-fr.odt b/doc/manuel-fr.odt
index 9b72b62..cdd1051 100644
Binary files a/doc/manuel-fr.odt and b/doc/manuel-fr.odt differ
diff --git a/doc/manuel-fr.pdf b/doc/manuel-fr.pdf
index 18bbe4f..f53142e 100644
Binary files a/doc/manuel-fr.pdf and b/doc/manuel-fr.pdf differ
diff --git a/include/class/class_document.php b/include/class/class_document.php
index fc07e28..55c562c 100644
--- a/include/class/class_document.php
+++ b/include/class/class_document.php
@@ -547,6 +547,7 @@ class Document
* - [ACOMPTE]
* - [TITLE]
* - [DESCRIPTION]
+ * - [COMM_PAYMENT]
*
* \param $p_tag TAG
* \param $p_array data from $_POST
@@ -1173,8 +1174,11 @@ class Document
case 'TITLE':
$title=HtmlInput::default_value_request("ag_title", "");
return $title;
-
- }
+ case 'COMM_PAYMENT':
+ if ( isset($p_array["e_comm_paiement"])) {
+ return $p_array["e_comm_paiement"];
+ } else return "";
+ }
/*
* retrieve the value of ATTR for e_march
*/