phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4717 - in phpcompta/trunk/include: . template


From: phpcompta-dev
Subject: [Phpcompta-dev] r4717 - in phpcompta/trunk/include: . template
Date: Sat, 14 Jan 2012 15:39:38 +0100 (CET)

Author: danydb
Date: 2012-01-14 15:39:38 +0100 (Sat, 14 Jan 2012)
New Revision: 4717

Modified:
   phpcompta/trunk/include/class_acc_ledger_fin.php
   phpcompta/trunk/include/template/form_ledger_fin.php
Log:
Cosmetic 

Modified: phpcompta/trunk/include/class_acc_ledger_fin.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger_fin.php    2012-01-14 14:39:16 UTC 
(rev 4716)
+++ phpcompta/trunk/include/class_acc_ledger_fin.php    2012-01-14 14:39:38 UTC 
(rev 4717)
@@ -311,23 +311,12 @@
         {
             $tiers=(isset(${"e_other".$i}))?${"e_other".$i}:""
                    ;
-            $tiers_label="";
             
$tiers_amount=(isset(${"e_other$i"."_amount"}))?round(${"e_other$i"."_amount"},2):0;
 
             $tiers_comment=(isset 
(${"e_other$i"."_comment"}))?${"e_other$i"."_comment"}:""
                            ;
-            // If $tiers has a value
-            if ( $tiers != ""  )
-            {
-                $fTiers=new Fiche($this->db);
-                $fTiers->get_by_qcode($tiers);
+            ${"e_other$i"."_amount"}=(isset 
(${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}:0;
 
-                $tiers_label=$fTiers->strAttribut(ATTR_DEF_NAME);
-
-            }
-            ${"e_other$i"."_amount"}=(isset 
(${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}:
-                                     0;
-
             $W1=new ICard();
             $W1->label="";
             $W1->name="e_other".$i;
@@ -338,7 +327,7 @@
             $W1->set_attribute('ipopup','ipopcard');
 
             // name of the field to update with the name of the card
-            $W1->set_attribute('label','e_other'.$i.'_label');
+            $W1->set_attribute('label','e_other'.$i.'_comment');
             // name of the field to update with the name of the card
             $W1->set_attribute('typecard','filter');
             // Add the callback function to filter the card on the jrn
@@ -350,9 +339,6 @@
             $array[$i]['qcode']=$W1->input();
             $array[$i]['search']=$W1->search();
 
-            // label
-            $other=new ISpan("e_other$i"."_label", $tiers_label);
-            $array[$i]['span']=$other->input();
             // Comment
             $wComment=new IText("e_other$i"."_comment",$tiers_comment);
 
@@ -477,7 +463,7 @@
         //-------------------------------------------------
         $r.='<TABLE style="width:100%" id="fin_item">';
         $r.="<TR>";
-        $r.="<th colspan=\"2\">code</TH>";
+        $r.="<th colspan=\"2\">Nom</TH>";
         $r.="<th>Commentaire</TH>";
         $r.="<th style=\"text-align:right\">Montant</TH>";
         $r.='<th colspan="2"> Op. Concern&eacute;e(s)</th>';
@@ -519,7 +505,6 @@
 
             $r.="<TR><td>".${'e_other'.$i}."</TD>";
             // label
-            $other=new ISpan();
             $r.='<TD style="width:25%;border-bottom:1px dotted grey;">';
             $r.=$fTiers->strAttribut(ATTR_DEF_NAME);
             $r.='</td>';

Modified: phpcompta/trunk/include/template/form_ledger_fin.php
===================================================================
--- phpcompta/trunk/include/template/form_ledger_fin.php        2012-01-14 
14:39:16 UTC (rev 4716)
+++ phpcompta/trunk/include/template/form_ledger_fin.php        2012-01-14 
14:39:38 UTC (rev 4717)
@@ -30,7 +30,6 @@
 <? foreach ($array as $item) {
 echo '<tr>';
 echo td($item['qcode'].$item['search']);
-echo td($item['span']);
 echo td($item['comment']);
 echo td($item['amount']);
 echo td($item['concerned']);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]