Author: danydb
Date: 2012-02-17 01:13:36 +0100 (Fri, 17 Feb 2012)
New Revision: 4771

Modified:
   phpcompta/tags/rel600/include/class_anc_operation.php
Log:
bug cannot update ANC (cause j_id and value from POST conflict)

Modified: phpcompta/tags/rel600/include/class_anc_operation.php
===================================================================
--- phpcompta/tags/rel600/include/class_anc_operation.php       2012-02-09 
13:09:58 UTC (rev 4770)
+++ phpcompta/tags/rel600/include/class_anc_operation.php       2012-02-17 
00:13:36 UTC (rev 4771)
@@ -547,7 +547,7 @@
      *   -oa_description
      *
      */
-    function save_form_plan($p_array,$p_item,$j_id)
+    function save_form_plan($p_array,$p_item,$p_j_id)
     {
         extract($p_array);
        if (! isset ($hplan) ) return;
@@ -576,7 +576,7 @@
                 $op=new Anc_Operation($this->db);
                 $op->po_id=$hplan[$p_item][$e];
                 $op->oa_group=$this->oa_group;
-                $op->j_id=$j_id;
+                $op->j_id=$p_j_id;
                 $op->oa_amount=abs($val[$p_item][$row]);
                 $op->oa_debit=$this->oa_debit;
                 $op->oa_date=$this->oa_date;



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

_______________________________________________
Phpcompta  est un logiciel libre de comptabilité en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to