[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r244 - in trunk/coprop/include: . template
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r244 - in trunk/coprop/include: . template |
Date: |
Wed, 4 Jan 2012 17:20:00 +0100 (CET) |
Author: danydb
Date: 2012-01-04 17:20:00 +0100 (Wed, 04 Jan 2012)
New Revision: 244
Modified:
trunk/coprop/include/ajax_add_key.php
trunk/coprop/include/ajax_mod_key.php
trunk/coprop/include/template/key_detail.php
Log:
show difference tantieme and computed tantieme
Modified: trunk/coprop/include/ajax_add_key.php
===================================================================
--- trunk/coprop/include/ajax_add_key.php 2012-01-04 16:13:41 UTC (rev
243)
+++ trunk/coprop/include/ajax_add_key.php 2012-01-04 16:20:00 UTC (rev
244)
@@ -39,6 +39,7 @@
$str_message="Ajout d'une clef de répartition";
$alot=$cn->get_array("select f_id,vw_name as name,quick_code as qcode,
vw_description as desc, 0 as l_part
from vw_fiche_attr where
fd_id=$1",array($g_copro_parameter->categorie_lot));
+$init_tantieme=0;
echo '<form method="post">';
require_once 'template/key_detail.php';
echo HtmlInput::submit("add_key","Ajouter",' onclick="return confirm (\'Vous
confirmez?\')"');
Modified: trunk/coprop/include/ajax_mod_key.php
===================================================================
--- trunk/coprop/include/ajax_mod_key.php 2012-01-04 16:13:41 UTC (rev
243)
+++ trunk/coprop/include/ajax_mod_key.php 2012-01-04 16:20:00 UTC (rev
244)
@@ -59,6 +59,11 @@
f_id,vw_name as name,quick_code as qcode, 0 as l_part
from vw_fiche_attr where fd_id=$2
and f_id not in (select lot_fk from coprop.clef_repartition_detail
where cr_id=$1)",array($key_id,$g_copro_parameter->categorie_lot));
+
+$init_tantieme=$cn->get_value("select sum(crd_amount) from
+ coprop.clef_repartition_detail
+ where cr_id=$1",array($key_id));
+
echo '<form method="post">';
echo HtmlInput::hidden('cr_id',$key_id);
require_once 'template/key_detail.php';
Modified: trunk/coprop/include/template/key_detail.php
===================================================================
--- trunk/coprop/include/template/key_detail.php 2012-01-04 16:13:41 UTC
(rev 243)
+++ trunk/coprop/include/template/key_detail.php 2012-01-04 16:20:00 UTC
(rev 244)
@@ -77,4 +77,17 @@
endfor;
?>
</table>
+Total tantième : <span id="span_tantieme"><?=init_tantieme?></span>
+<?
+if ( bcsub ($init_tantieme,$tantieme->value) != 0):
+?>
+<span id="span_diff" style="color:red"><?=bcsub
($init_tantieme,$tantieme->value)?></span>
+<?
+else:
+ ?>
+<span id="span_diff" style="color:green"><?=bcsub
($init_tantieme,$tantieme->value)?></span>
+<?
+endif;
+
+?>
</div>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r244 - in trunk/coprop/include: . template,
phpcompta-dev <=