phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4359 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4359 - phpcompta/trunk/include
Date: Tue, 15 Nov 2011 14:39:21 +0100 (CET)

Author: danydb
Date: 2011-11-15 14:39:20 +0100 (Tue, 15 Nov 2011)
New Revision: 4359

Modified:
   phpcompta/trunk/include/class_acc_payment.php
   phpcompta/trunk/include/payment_middle.inc.php
Log:
Mode de paiement

Modified: phpcompta/trunk/include/class_acc_payment.php
===================================================================
--- phpcompta/trunk/include/class_acc_payment.php       2011-11-15 13:28:49 UTC 
(rev 4358)
+++ phpcompta/trunk/include/class_acc_payment.php       2011-11-15 13:39:20 UTC 
(rev 4359)
@@ -177,16 +177,15 @@
         $sql="delete from mod_payment where mp_id=$1";
         $this->cn->exec_sql($sql,array($this->mp_id));
     }
-    /*!\brief retrieve all the data for a certain ledger
+    /*!\brief retrieve all the data for all ledgers
      *\param non
      *\return an array of row
      */
     public function get_all()
     {
-        $sql='select mp_id '.
-             ' from mod_payment '.
-             ' where jrn_def_id=$1';
-        $array=$this->cn->get_array($sql,array($this->jrn_def_id));
+        $sql='select mp_id,mp_lib '.
+             ' from mod_payment order by mp_lib';
+        $array=$this->cn->get_array($sql);
         $ret=array();
         if ( !empty($array) )
         {

Modified: phpcompta/trunk/include/payment_middle.inc.php
===================================================================
--- phpcompta/trunk/include/payment_middle.inc.php      2011-11-15 13:28:49 UTC 
(rev 4358)
+++ phpcompta/trunk/include/payment_middle.inc.php      2011-11-15 13:39:20 UTC 
(rev 4359)
@@ -114,10 +114,9 @@
 //----------------------------------------------------------------------
 
 echo '<fieldset>';
-echo '<legend>Journaux d\' achat</legend>';
+echo '<legend>Journaux </legend>';
 /* Get the data from database */
 $mp=new Acc_Payment($cn);
-$mp->set_parameter('type','ACH');
 $array=$mp->get_all();
 /* if there are data show them in a table */
 if ( ! empty ($array))
@@ -138,37 +137,5 @@
     echo '</table>';
 }
 echo '</fieldset>';
-
-//----------------------------------------------------------------------
-// LEDGER SOLD
-//----------------------------------------------------------------------
-
-echo '<fieldset>';
-echo '<legend>Journaux de vente</legend>';
-$mp=new Acc_Payment($cn);
-$mp->set_parameter('type','VEN');
-$array=$mp->get_all();
-/* if there are data show them in a table */
-if ( ! empty ($array))
-{
-    echo '<table style="border: 2px outset blue; width: 100%;" >';
-    echo $tr.$th.'Libell&eacute;'.$eth.$th.'Type de fiche'
-    .$eth.$th.'enregistr&eacute; dans le journal'.$eth.
-    $th.' Avec la fiche'.$eth.$th.'Action'.$eth.$etr;
-    foreach ($array as $row)
-    {
-        echo $tr;
-        echo $row->row();
-        echo 
$td.HtmlInput::button_anchor('Modifie','?p_action=divers&sa=mp&sb=change&'.dossier::get().
-                                              
'&id='.$row->get_parameter('id'));
-        echo $etr;
-
-    }
-    echo '</table>';
-}
-echo '</fieldset>';
-// Button to insert new one
-echo 
HtmlInput::button_anchor(_('Ajout'),'?p_action=divers&sa=mp&sb=ins&'.dossier::get());
-
 echo '</div>';
 ?>




reply via email to

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