phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5654 - phpcompta/tags/rel671/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5654 - phpcompta/tags/rel671/include
Date: Wed, 8 Jan 2014 22:09:52 +0100 (CET)

Author: danydb
Date: 2014-01-08 22:09:51 +0100 (Wed, 08 Jan 2014)
New Revision: 5654

Modified:
   phpcompta/tags/rel671/include/class_anc_operation.php
Log:
Task #960 : show negative

Modified: phpcompta/tags/rel671/include/class_anc_operation.php
===================================================================
--- phpcompta/tags/rel671/include/class_anc_operation.php       2014-01-08 
21:09:17 UTC (rev 5653)
+++ phpcompta/tags/rel671/include/class_anc_operation.php       2014-01-08 
21:09:51 UTC (rev 5654)
@@ -59,7 +59,7 @@
     /**
      * @brief signed of the amount
      */
-    var $oa_signed;
+    var $oa_positive;
     
     /*!\brief constructor
      *
@@ -69,7 +69,7 @@
         $this->db=$p_cn;
         $this->id=$p_id;
         $this->oa_jrnx_id_source=null;
-        $this->oa_signed='Y';
+        $this->oa_positive='Y';
     }
     /*!\brief add a row  to the table operation_analytique
      * \note if $this->oa_group if 0 then a sequence id will be computed for
@@ -97,7 +97,7 @@
         if ( $this->oa_amount< 0) 
         {
             $this->oa_debit=($this->oa_debit=='t')?'f':'t';
-            $this->oa_signed='N';
+            $this->oa_positive='N';
         }
         
         $oa_row=(isset($this->oa_row))?$this->oa_row:null;
@@ -111,7 +111,7 @@
              oa_date,
              oa_row,
              oa_jrnx_id_source,
-             oa_signed
+             oa_positive
              ) values ($1,$2,$3,$4,$5,$6,to_date($7,'DD.MM.YYYY'),$8,$9,$10)";
 
         $this->db->exec_sql($sql,array(
@@ -124,7 +124,7 @@
                 $this->oa_date, //7
                 $oa_row, //8
                 $this->oa_jrnx_id_source, //8
-                $this->oa_signed
+                $this->oa_positive
                 ));
 
     }
@@ -326,7 +326,7 @@
              oa_date,
              pa_id,
              oa_row,
-             oa_signed
+             oa_positive
              from operation_analytique join poste_analytique using (po_id)
              where
              j_id=$p_jid order by j_id,oa_row,pa_id";
@@ -779,7 +779,7 @@
         $idx_pa=0;
         for ($i=0;$i < count($p_array);$i++)
         {
-            
$val[$p_line][$p_array[$i]->oa_row]=($p_array[$i]->oa_signed=='Y')?$p_array[$i]->oa_amount:($p_array[$i]->oa_amount*(-1));
+            
$val[$p_line][$p_array[$i]->oa_row]=($p_array[$i]->oa_positive=='Y')?$p_array[$i]->oa_amount:($p_array[$i]->oa_amount*(-1));
         }
         $result['val']=$val;
         return $result;



---
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]