noalyss-commit
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]