phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5211 - phpcompta/tags/rel650/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5211 - phpcompta/tags/rel650/include
Date: Mon, 15 Apr 2013 18:57:05 +0200 (CEST)

Author: danydb
Date: 2013-04-15 18:57:05 +0200 (Mon, 15 Apr 2013)
New Revision: 5211

Modified:
   phpcompta/tags/rel650/include/class_acc_ledger_fin.php
Log:
Impossible de sauver dans journaux financiers dans certains cas

Modified: phpcompta/tags/rel650/include/class_acc_ledger_fin.php
===================================================================
--- phpcompta/tags/rel650/include/class_acc_ledger_fin.php      2013-04-14 
21:46:39 UTC (rev 5210)
+++ phpcompta/tags/rel650/include/class_acc_ledger_fin.php      2013-04-15 
16:57:05 UTC (rev 5211)
@@ -444,7 +444,7 @@
 
        public function confirm($p_array, $p_nothing = 0)
        {
-               global $g_parameter;
+               global $g_parameter,$g_user;
                $r = "";
                bcscale(2);
                extract($p_array);
@@ -455,7 +455,11 @@
                }
                else
                {
-                       $pPeriode->find_periode($e_date);
+                       if (isDate($e_date) != null) {
+                               $pPeriode->find_periode($e_date);
+                       } else {
+                               $pPeriode->p_id=$g_user->get_periode();
+                       }
                }
 
                list ($l_date_start, $l_date_end) = $pPeriode->get_date_limit();



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

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