phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r664 - tag/rel671/rapport_avance/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r664 - tag/rel671/rapport_avance/include
Date: Sun, 12 Jan 2014 20:34:56 +0100 (CET)

Author: danydb
Date: 2014-01-12 20:34:55 +0100 (Sun, 12 Jan 2014)
New Revision: 664

Modified:
   tag/rel671/rapport_avance/include/class_rapav_listing_formula.php
Log:
Check card_saldo

Modified: tag/rel671/rapport_avance/include/class_rapav_listing_formula.php
===================================================================
--- tag/rel671/rapport_avance/include/class_rapav_listing_formula.php   
2014-01-12 18:05:21 UTC (rev 663)
+++ tag/rel671/rapport_avance/include/class_rapav_listing_formula.php   
2014-01-12 19:34:55 UTC (rev 664)
@@ -485,6 +485,7 @@
                                 and lf.f_id = $3
                                 ', array($this->detail->lc_id, $search, 
$this->fiche->f_id));
             $formula = str_replace($piece, $value, $formula);
+           
         }
         /** Protect against division by zero */
         if (strpos("1" . $formula, "/0.0000") != 0)
@@ -637,6 +638,8 @@
             // Saldo
             case 1:
             case 2:
+                 $card_saldo = ($this->data->lp_card_saldo == 0) ? "jrn1" : 
"jrn2";
+                 $card_saldo = ($this->data->lp_card_saldo == 0) ? "jrn1" : 
"jrn2";
                 // Compute D-C
                 $sql = "
                         
@@ -800,6 +803,7 @@
         echo '</p>';
 
         $ck = new ICheckBox('card_saldo');
+        $ck->value=1;
         $ck->set_check($this->data->lp_card_saldo);
         echo '<p>';
         echo 'Prendre le total de la fiche ' . $ck->input();



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