noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 11/15: Improve : ANCGL , type of export manda


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 11/15: Improve : ANCGL , type of export mandatory
Date: Mon, 25 Jan 2021 18:56:23 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 6f1f8d562924400dc94c423b6796ed80dda94a89
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Jan 25 18:41:50 2021 +0100

    Improve : ANCGL , type of export mandatory
---
 include/anc_great_ledger.inc.php | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/anc_great_ledger.inc.php b/include/anc_great_ledger.inc.php
index 53d727d..da41277 100644
--- a/include/anc_great_ledger.inc.php
+++ b/include/anc_great_ledger.inc.php
@@ -45,7 +45,7 @@ if ($result != null)
         $type_pdf=new Select_Box("type_pdf",_("Type export PDF"));
         $type_pdf->add_value(_("Un seul PDF"),1);
         $type_pdf->add_value(_("Un PDF par opération"),2);
-        $type_pdf->set_position("absolute");
+        $type_pdf->set_position("in-absolute");
         echo $type_pdf->input();
 
         echo $grandLivre->button_export_pdf();
@@ -67,11 +67,16 @@ if ($result != null)
                 break;
             }
         }
+        if (document.getElementById("type_pdf").value == "-1" )
+        {
+            valid=false;
+        }
+
         if ( valid  ) {
             progress_bar_start(p_task_id,p_message);
             return true;
         } else {
-            smoke.alert("<?=_('Choisissez au moins une opération')?>");
+            smoke.alert("<?=_('Choisissez au moins une opération et le type 
d\'export')?>");
             return false;
         }
         



reply via email to

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