[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 21/23: DOCUMENT : generate : new tag = NOTE
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 21/23: DOCUMENT : generate : new tag = NOTE |
Date: |
Sun, 26 Feb 2023 14:47:31 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 02dc034ca512c2ba3f71922ae1c4b35af00aadd4
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue Feb 21 13:40:20 2023 +0100
DOCUMENT : generate : new tag = NOTE
---
include/class/document.class.php | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/include/class/document.class.php b/include/class/document.class.php
index 51a4b2b86..4ddf37c1e 100644
--- a/include/class/document.class.php
+++ b/include/class/document.class.php
@@ -674,6 +674,7 @@ class Document
* - [DESCRIPTION]
* - [DOCUMENT_ID]
* - [DATE_PAID]
+ * - [NOTE]
*
* \param $p_tag TAG
* \param $p_array data from $_POST
@@ -1648,9 +1649,17 @@ class Document
from action_gestion
join document_type dt on
(ag_type=dt.dt_id)
where ag_id=$1", array($p_array["ag_id"]));
+ } elseif (isset($p_array['gen_doc'])) {
+ $ret = $this->db->get_value("
+ select md_name from
public.document_modele where md_id=$1",
+ [$p_array['gen_doc']]);
}
- return $ret;
-
+ return $ret;
+ case 'NOTE':
+ return $p_array['jrn_note_input']??"";
+
+
+
} // end switch
/*
* retrieve the value of ATTR for e_march
- [Noalyss-commit] [noalyss] 14/23: Waiting box, (continued)
- [Noalyss-commit] [noalyss] 14/23: Waiting box, Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 17/23: Bug #0002219: Compatibilité PHP 8.2 , 8.1 , 8.0, Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 19/23: Improve DEBUG, Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 03/23: Fix CFGTVA : id cannot be a float, Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 01/23: Last detail : logo , fix unit test file, Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 11/23: missing semi-colon, Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 18/23: Improve DEBUG, Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 22/23: Merge branch 'devel', Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 23/23: Documentation and CSS, Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 16/23: Bug : date for payment incorrect, Dany De Bontridder, 2023/02/26
- [Noalyss-commit] [noalyss] 21/23: DOCUMENT : generate : new tag = NOTE,
Dany De Bontridder <=