From bf299972b0661ef89ee0d0d03cef7e16e71c3058 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 14 Jan 2012 14:39:38 +0000 Subject: [PATCH] Cosmetic --- include/class_acc_ledger_fin.php | 21 +++------------------ include/template/form_ledger_fin.php | 1 - 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/include/class_acc_ledger_fin.php b/include/class_acc_ledger_fin.php index eb41f8ffc..180a50897 100644 --- a/include/class_acc_ledger_fin.php +++ b/include/class_acc_ledger_fin.php @@ -311,22 +311,11 @@ class Acc_Ledger_Fin extends Acc_Ledger { $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); - - $tiers_label=$fTiers->strAttribut(ATTR_DEF_NAME); - - } - ${"e_other$i"."_amount"}=(isset (${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}: - 0; + ${"e_other$i"."_amount"}=(isset (${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}:0; $W1=new ICard(); $W1->label=""; @@ -338,7 +327,7 @@ class Acc_Ledger_Fin extends Acc_Ledger $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 @@ class Acc_Ledger_Fin extends Acc_Ledger $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 @@ class Acc_Ledger_Fin extends Acc_Ledger //------------------------------------------------- $r.=''; $r.=""; - $r.=""; + $r.=""; $r.=""; $r.=""; $r.=''; @@ -519,7 +505,6 @@ class Acc_Ledger_Fin extends Acc_Ledger $r.=""; // label - $other=new ISpan(); $r.=''; diff --git a/include/template/form_ledger_fin.php b/include/template/form_ledger_fin.php index b90f642b5..677e86622 100644 --- a/include/template/form_ledger_fin.php +++ b/include/template/form_ledger_fin.php @@ -30,7 +30,6 @@ '; echo td($item['qcode'].$item['search']); -echo td($item['span']); echo td($item['comment']); echo td($item['amount']); echo td($item['concerned']);
codeNomCommentaireMontant Op. Concernée(s)
".${'e_other'.$i}."'; $r.=$fTiers->strAttribut(ATTR_DEF_NAME); $r.='