noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/05: Ajout d'un bouton pour revenir à l'en


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/05: Ajout d'un bouton pour revenir à l'encodage
Date: Sun, 07 Dec 2014 14:51:25 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit baf8958cd2460a854920540fa8783190d96cf84d
Author: Dany De Bontridder <address@hidden>
Date:   Sun Dec 7 04:16:51 2014 +0100

    Ajout d'un bouton pour revenir à l'encodage
---
 include/class_acc_ledger.php |   10 ++++++++++
 include/compta_ach.inc.php   |    2 +-
 include/compta_fin.inc.php   |    2 ++
 include/compta_ods.inc.php   |    2 ++
 include/compta_ven.inc.php   |    1 +
 5 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/include/class_acc_ledger.php b/include/class_acc_ledger.php
index 68b1e9e..8b000f4 100644
--- a/include/class_acc_ledger.php
+++ b/include/class_acc_ledger.php
@@ -3887,6 +3887,16 @@ class Acc_Ledger extends jrn_def_sql
             return $r;
             
         }
+        /**
+         * Create a button to encode a new operation into the same ledger
+         * @return string
+         */
+        function button_new_operation()
+        {
+            
$url=http_build_query(array('ac'=>$_REQUEST['ac'],'gDossier'=>$_REQUEST['gDossier'],'p_jrn'=>$_REQUEST['p_jrn']));
+            $button = HtmlInput::button_anchor(_("Nouvelle opération"), 
'do.php?'.$url);
+            return $button;
+        }
 
 }
 ?>
\ No newline at end of file
diff --git a/include/compta_ach.inc.php b/include/compta_ach.inc.php
index de12e27..ec307d1 100644
--- a/include/compta_ach.inc.php
+++ b/include/compta_ach.inc.php
@@ -157,7 +157,7 @@ if (isset($_POST['record']))
                      echo '<h2>Document</h2>';
                      echo $Ledger->doc;
                }
-
+                echo $Ledger->button_new_operation();
                echo '</div>';
                return;
        }
diff --git a/include/compta_fin.inc.php b/include/compta_fin.inc.php
index 3797719..dd6e7b6 100644
--- a/include/compta_fin.inc.php
+++ b/include/compta_fin.inc.php
@@ -117,7 +117,9 @@ if ( isset($_POST['confirm']))
                echo '<div class="content">';
                echo $a;
                echo '</div>';
+
                echo '</div>';
+                echo $Ledger->button_new_operation();
                return;
        }
 }
diff --git a/include/compta_ods.inc.php b/include/compta_ods.inc.php
index 70e6269..8c3d449 100644
--- a/include/compta_ods.inc.php
+++ b/include/compta_ods.inc.php
@@ -100,6 +100,8 @@ elseif (isset($_POST['save']))
                // show feedback
                echo '<div id="jrn_name_div">'; echo '<h2 id="jrn_name"  
style="display:inline">' . $ledger->get_name() . '</h2>'; echo '</div>';
                echo $ledger->confirm($_POST, true);
+                echo $ledger->button_new_operation();
+
        }
        catch (Exception $e)
        {
diff --git a/include/compta_ven.inc.php b/include/compta_ven.inc.php
index 52c48f7..ebed9af 100644
--- a/include/compta_ven.inc.php
+++ b/include/compta_ven.inc.php
@@ -170,6 +170,7 @@ $p_msg="";
             $obj=new Acc_Ledger_Info($cn);
             $obj->save_extra($Ledger->jr_id,$_POST);
 
+            echo $Ledger->button_new_operation();
 
             echo '</div>';
             return;



reply via email to

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