[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r270 - in trunk/coprop: . include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r270 - in trunk/coprop: . include |
Date: |
Sun, 8 Jan 2012 00:35:10 +0100 (CET) |
Author: danydb
Date: 2012-01-08 00:35:10 +0100 (Sun, 08 Jan 2012)
New Revision: 270
Removed:
trunk/coprop/include/ajax_mod_copro_lot.php
Modified:
trunk/coprop/coprop-javascript.js
trunk/coprop/include/class_budget.php
Log:
compute_budget : fix bug + when page is loaded compute difference
Modified: trunk/coprop/coprop-javascript.js
===================================================================
--- trunk/coprop/coprop-javascript.js 2012-01-07 23:09:44 UTC (rev 269)
+++ trunk/coprop/coprop-javascript.js 2012-01-07 23:35:10 UTC (rev 270)
@@ -232,6 +232,7 @@
$("span_tantieme").innerHTML=Math.round(tot);
if ( ! isNaN($('cr_tantieme').value)) {
var difference=parseFloat($('cr_tantieme').value)-tot;
+ difference=Math.round(difference*100)/100;
if ( difference != 0 ) {
$('span_diff').style.backgroundColor="red";
} else {
@@ -295,9 +296,10 @@
}
}
}
- $("sbud_total").innerHTML=Math.round(tot);
+ $("sbud_total").innerHTML=Math.round(tot*100)/100;
if ( ! isNaN($('b_amount').value)) {
var difference=parseFloat($('b_amount').value)-tot;
+ difference=Math.round(difference*100)/100;
if ( difference != 0 ) {
$('span_diff').style.backgroundColor="red";
} else {
Deleted: trunk/coprop/include/ajax_mod_copro_lot.php
===================================================================
--- trunk/coprop/include/ajax_mod_copro_lot.php 2012-01-07 23:09:44 UTC (rev
269)
+++ trunk/coprop/include/ajax_mod_copro_lot.php 2012-01-07 23:35:10 UTC (rev
270)
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of PhpCompta.
- *
- * PhpCompta is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * PhpCompta is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with PhpCompta; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/**
- * @file
- * @brief modify copro. + lot
- * parameter are
- address@hidden
- * array
- 'plugin_code' => string 'COPROP' (length=6)
- 'gDossier' => string '26' (length=2)
- 'coprop_id' => string '32' (length=2)
- 'ac' => string 'EXT/COPROP' (length=10)
- 'act' => string 'modcopro' (length=8)
-
- address@hidden
- */
-
-$copro=new Fiche($cn);
-$copro->id=$coprop_id;
-
-$acurrent=$cn->get_array("select lot.l_id ,l_fiche_id,
- (select ad_value from fiche_detail where
f_id=l_fiche_id and ad_id=1) as fiche_name,
- (select ad_value from fiche_detail where
f_id=l_fiche_id and ad_id=23) as fiche_qcode,
- (select ad_value from fiche_detail where
f_id=l_fiche_id and ad_id=9) as fiche_desc
- from coprop.lot where coprop_fk=$1",
- array($coprop_id));
-
-$not_assigned=$cn->get_array("select a.f_id,
- (select ad_value from fiche_detail as e where
e.f_id=a.f_id and ad_id=1) as fiche_name,
- (select ad_value from fiche_detail as f where
f.f_id=a.f_id and ad_id=23) as fiche_qcode,
- (select ad_value from fiche_detail where
f_id=l_fiche_id and ad_id=9) as fiche_desc
- from coprop.lot
- right join fiche as a on (l_fiche_id=a.f_id)
- where
- coalesce(coprop_fk,0) <>$1 and fd_id=$2",
- array($coprop_id,$g_copro_parameter->categorie_lot));
-
-require_once("template/coprop_lot_mod.php")
-?>
Modified: trunk/coprop/include/class_budget.php
===================================================================
--- trunk/coprop/include/class_budget.php 2012-01-07 23:09:44 UTC (rev
269)
+++ trunk/coprop/include/class_budget.php 2012-01-07 23:35:10 UTC (rev
270)
@@ -141,6 +141,7 @@
}
require_once 'template/bud_detail.php';
+ echo create_script("compute_budget()");
}
catch (Exception $e)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r270 - in trunk/coprop: . include,
phpcompta-dev <=