Author: danydb
Date: 2011-12-15 16:08:14 +0100 (Thu, 15 Dec 2011)
New Revision: 209

Modified:
   trunk/modop/class_modop_operation.php
Log:
fix bug : duplicate values when adding rows

Modified: trunk/modop/class_modop_operation.php
===================================================================
--- trunk/modop/class_modop_operation.php       2011-12-11 15:47:09 UTC (rev 
208)
+++ trunk/modop/class_modop_operation.php       2011-12-15 15:08:14 UTC (rev 
209)
@@ -94,7 +94,7 @@
 
 
             } // for each item
-            $this->array['nb_item']=(count($qp)<9)?9:count($qp);
+            
$this->array['nb_item']=(count($qp)<MAX_ARTICLE)?MAX_ARTICLE:count($qp);
         } // ledger ACH
         /* 
---------------------------------------------------------------------- */
         // VEN
@@ -147,7 +147,7 @@
 
 
             } // for each item
-            $this->array['nb_item']=(count($qp)<9)?9:count($qp);
+            
$this->array['nb_item']=(count($qp)<MAX_ARTICLE)?MAX_ARTICLE:count($qp);
 
         } // ledger VEN
         /* 
---------------------------------------------------------------------- */
@@ -178,7 +178,7 @@
                 $this->array['amount'.$e]=$ods[$e]['j_montant'];
                 $this->array['ld'.$e]=$ods[$e]['j_text'];
             }
-            $this->array['nb_item']=(count($ods)<9)?9:count($ods);
+            
$this->array['nb_item']=(count($ods)<MAX_ARTICLE)?MAX_ARTICLE:count($ods); 
 
         } // ledger MISC
 ///////////////////////////////////////////////////////////////////////////


_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to