[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r219 - in trunk/amortis/include: . template
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r219 - in trunk/amortis/include: . template |
Date: |
Tue, 3 Jan 2012 20:14:44 +0100 (CET) |
Author: danydb
Date: 2012-01-03 20:14:44 +0100 (Tue, 03 Jan 2012)
New Revision: 219
Modified:
trunk/amortis/include/class_am_generate.php
trunk/amortis/include/template/util_generate.php
Log:
Bug mantis #502 erreur quand g?\195?\169n?\195?\168re ?\195?\169criture
Modified: trunk/amortis/include/class_am_generate.php
===================================================================
--- trunk/amortis/include/class_am_generate.php 2011-12-28 20:01:25 UTC (rev
218)
+++ trunk/amortis/include/class_am_generate.php 2012-01-03 19:14:44 UTC (rev
219)
@@ -216,6 +216,7 @@
$val=($val=='')?0:$val;
$h=$cn->get_value('select ha_id from
amortissement.amortissement_histo where a_id=$1 and h_year=$2',
array($p_array['a_id'][$i],$p_array['p_year']));
+ if ( $cn->count() == 0 ) continue;
$n->ha_id=$h;
$n->load();
$n->h_amount=$val;
Modified: trunk/amortis/include/template/util_generate.php
===================================================================
--- trunk/amortis/include/template/util_generate.php 2011-12-28 20:01:25 UTC
(rev 218)
+++ trunk/amortis/include/template/util_generate.php 2012-01-03 19:14:44 UTC
(rev 219)
@@ -21,7 +21,7 @@
// Copyright Author Dany De Bontridder address@hidden
/*!\file
- * \brief select the mat. to amortize, the ledger and the year
+ * \brief select the mat. to amortize, the ledger and the year
*/
?>
<form id="gen_amort" method="post">
@@ -49,7 +49,7 @@
</tr>
</table>
-Cochez ce qu'il faut amortir
+Cochez ce qu'il faut amortir
<table class="result">
<tr>
<th>Selection</th>
@@ -62,12 +62,12 @@
* get all the material
*/
$am=new Amortissement_Sql($cn);
-$array=$am->seek ("where a_visible='Y'");
+$array=$am->seek ("where a_visible='Y' ");
for ( $i =0;$i<count($array);$i++):
echo HtmlInput::hidden('a_id[]',$array[$i]->a_id);
$ck=new ICheckBox('p_ck'.$i);
$fiche=new Fiche($cn,$array[$i]->f_id);
-
+
?>
<tr>
<?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r219 - in trunk/amortis/include: . template,
phpcompta-dev <=