phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5229 - phpcompta/trunk/include/template


From: phpcompta-dev
Subject: [Phpcompta-dev] r5229 - phpcompta/trunk/include/template
Date: Sat, 11 May 2013 00:03:05 +0200 (CEST)

Author: danydb
Date: 2013-05-11 00:03:05 +0200 (Sat, 11 May 2013)
New Revision: 5229

Modified:
   phpcompta/trunk/include/template/letter_all.php
   phpcompta/trunk/include/template/letter_prop.php
Log:
task #0000836: Dans lettrage -> d?\195?\169tail il faut la diff?\195?\169rence

Modified: phpcompta/trunk/include/template/letter_all.php
===================================================================
--- phpcompta/trunk/include/template/letter_all.php     2013-05-10 21:45:03 UTC 
(rev 5228)
+++ phpcompta/trunk/include/template/letter_all.php     2013-05-10 22:03:05 UTC 
(rev 5229)
@@ -9,8 +9,8 @@
 ?>
   <h2 class="info2"><?=_('Désolé aucun résultat trouvé')?></h2>
 
-<?      exit();
-endif;?>
+<?php exit();
+  endif;?>
   <table class="result">
 <tr>
 <th>

Modified: phpcompta/trunk/include/template/letter_prop.php
===================================================================
--- phpcompta/trunk/include/template/letter_prop.php    2013-05-10 21:45:03 UTC 
(rev 5228)
+++ phpcompta/trunk/include/template/letter_prop.php    2013-05-10 22:03:05 UTC 
(rev 5229)
@@ -7,8 +7,9 @@
 ?>
   <h2 class="info2"><?=_('Désolé aucun résultat trouvé')?></h2>
 
-<?
+    <?php
   else :
+$delta=0;
 ?>
 <table class="result">
 <tr>
@@ -136,18 +137,25 @@
 </td>
 
 </tr>
-<?
+<?php
 if ($i<$linked_limit)
 {
   $amount_deb+=( $jnt_id == $this->content[$i]['letter'] && 
$this->content[$i]['j_debit']=='t')?$this->content[$i]['j_montant']:0;
   $amount_cred+=( $jnt_id == $this->content[$i]['letter'] && 
$this->content[$i]['j_debit']=='f')?$this->content[$i]['j_montant']:0;
 }
     endfor;
+$delta = bcsub($amount_deb, $amount_cred);
+$side = 'Créditeur';
+if ($delta < 0 ) {
+$side = "Débiteur";
+$delta = abs($delta);
+}
 ?>
 </TABLE>
   <h2 class="info"> Total lettré</h2>
 <span style="display:block;font-size:14px"><?=_('Total Debit')?>   
<?=$amount_deb?></span>
 <span style="display:block;font-size:14px"><?=_('Total Credit')?>   
<?=$amount_cred?></span>
+<span style="display:block;font-size:14px"><?=_('Total ').$side?>   
<?=$delta?></span>
 
 <?php endif;?>
 <?=HtmlInput::button('check_all','Sélectionner tout',' 
onclick="select_checkbox(\'letter_form\')"');?>



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