noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 10/11: Documentation


From: dwm
Subject: [Noalyss-commit] [noalyss] 10/11: Documentation
Date: Sun, 15 Dec 2024 09:51:26 -0500 (EST)

sparkyx pushed a commit to branch stable
in repository noalyss.

commit 3d89ad3f19c209f4f5454365883cbc2b4d00e8a9
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Dec 14 17:22:08 2024 +0100

    Documentation
---
 include/class/acc_ledger_purchase.class.php | 12 ++++++------
 include/class/anc_plan.class.php            |  4 ++--
 include/template/ledger_detail_ach.php      |  1 +
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/include/class/acc_ledger_purchase.class.php 
b/include/class/acc_ledger_purchase.class.php
index 7f3f31e63..65c0cd297 100644
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@ -1023,7 +1023,7 @@ class  Acc_Ledger_Purchase extends Acc_Ledger
                 $acc_pay->grpt=$acseq;
                 $acc_pay->jrn=$mp->get_parameter('ledger_target');
                 $acc_pay->periode=$tperiode;
-               $acc_pay->type=($famount>=0)?'d':'c';
+                       $acc_pay->type=($famount>=0)?'d':'c';
                 $let_other=$acc_pay->insert_jrnx();
                 
                 // insert into operation_currency
@@ -1065,11 +1065,11 @@ class  Acc_Ledger_Purchase extends Acc_Ledger
                 $r1=$this->get_id($internal);
                 $r2=$this->get_id($acinternal);
 
-               /*
-                * add lettering
-                */
-               $oletter=new Lettering($this->db);
-               $oletter->insert_couple($let_client,$let_other);
+                /*
+                 * add lettering
+                 */
+                $oletter=new Lettering($this->db);
+                $oletter->insert_couple($let_client,$let_other);
 
                 /* set the flag paid */
                 $Res=$this->db->exec_sql("update jrn set jr_rapt='paid' where 
jr_id=$1",array($r1));
diff --git a/include/class/anc_plan.class.php b/include/class/anc_plan.class.php
index 5a0de039f..e4d841f4a 100644
--- a/include/class/anc_plan.class.php
+++ b/include/class/anc_plan.class.php
@@ -185,7 +185,7 @@ class Anc_Plan
     function exist()
     {
         $a=$this->db->count_sql("select pa_id from plan_analytique where 
pa_id=$1",
-                                array($this->pa_id));
+                                array($this->id));
 
         return ($a==0)?false:true;
 
@@ -193,7 +193,7 @@ class Anc_Plan
     /**
     *@brief return an HTML string containing hidden input type to
     * hold the differant PA_ID
-    *@param $p_array contains a array, it is the result of the fct
+    *@param $p_array array contains a array, it is the result of the fct
     * Anc_Plan::get_list
     *@return html string
     *@see Anc_Plan::get_list
diff --git a/include/template/ledger_detail_ach.php 
b/include/template/ledger_detail_ach.php
index f623c899c..2eae6976e 100644
--- a/include/template/ledger_detail_ach.php
+++ b/include/template/ledger_detail_ach.php
@@ -4,6 +4,7 @@
 
 /**
  * @var $str_anc String HTML contains the detail of analytic
+ * @var $g_user Noalyss_User inherited , it is the connected user
  */
 $str_anc="";
 global $div,$g_parameter,$cn,$access,$jr_id,$obj;



reply via email to

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