phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4740 - phpcompta/tags/rel600/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4740 - phpcompta/tags/rel600/include
Date: Sat, 4 Feb 2012 14:45:40 +0100 (CET)

Author: danydb
Date: 2012-02-04 14:45:39 +0100 (Sat, 04 Feb 2012)
New Revision: 4740

Modified:
   phpcompta/tags/rel600/include/class_acc_ledger_fin.php
Log:
More details after inserting in FIN

Modified: phpcompta/tags/rel600/include/class_acc_ledger_fin.php
===================================================================
--- phpcompta/tags/rel600/include/class_acc_ledger_fin.php      2012-02-04 
01:09:47 UTC (rev 4739)
+++ phpcompta/tags/rel600/include/class_acc_ledger_fin.php      2012-02-04 
13:45:39 UTC (rev 4740)
@@ -635,7 +635,7 @@
             $amount=0.0;
             $idx_operation=0;
             $ret='<table class="result" style="width:75%">';
-            $ret.=tr(th('Quick Code').th('Nom').th('Libellé').th('Montant',' 
style="text-align:right"'));
+            $ret.=tr(th('n° interne').th('Quick 
Code').th('Nom').th('Libellé').th('Montant',' style="text-align:right"'));
             // Credit = goods
             for ( $i = 0; $i < $nb_item;$i++)
             {
@@ -648,10 +648,7 @@
                 // round it
                 ${"e_other$i"."_amount"}=round( ${"e_other$i"."_amount"},2);
 
-                // Compute display
-                
$row=td(${"e_other$i"}).td($fPoste->strAttribut(ATTR_DEF_NAME)).td(${"e_other".$i."_comment"}).td(nbm(${"e_other$i"."_amount"}),'class="num"');
 
-                $ret.=tr($row);
 
                 $amount+=${"e_other$i"."_amount"};
                 // Record a line for the bank
@@ -796,7 +793,7 @@
                 {
                     // for each item, insert into operation_analytique */
                     $op=new Anc_Operation($this->db);
-                   $op->oa_group=$this->db->get_next_seq("s_oa_group"); /* for 
analytic */
+                                       
$op->oa_group=$this->db->get_next_seq("s_oa_group"); /* for analytic */
                     $op->j_id=$j_id;
                     $op->oa_date=$e_date;
                     $op->oa_debit=($amount < 0 )?'t':'f';
@@ -807,8 +804,13 @@
 
                 $this->update_internal_code($internal);
 
+                               $js_detail=  HtmlInput::detail_op($jr_id, 
$internal);
+                               // Compute display
+                
$row=td($js_detail).td(${"e_other$i"}).td($fPoste->strAttribut(ATTR_DEF_NAME)).td(${"e_other".$i."_comment"}).td(nbm(${"e_other$i"."_amount"}),'class="num"');
 
+                $ret.=tr($row);
 
+
                 if ( $i == 0 )
                 {
                     // first record we upload the files and



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