diff --git a/include/class_acc_payment.php b/include/class_acc_payment.php index ef30e93bb..81dbeac71 100644 --- a/include/class_acc_payment.php +++ b/include/class_acc_payment.php @@ -177,16 +177,15 @@ class Acc_Payment $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) ) { diff --git a/include/payment_middle.inc.php b/include/payment_middle.inc.php index 0ef054bc7..c84b0b437 100644 --- a/include/payment_middle.inc.php +++ b/include/payment_middle.inc.php @@ -114,10 +114,9 @@ if ( $sb=='insert') //---------------------------------------------------------------------- echo '
'; - -//---------------------------------------------------------------------- -// LEDGER SOLD -//---------------------------------------------------------------------- - -echo ''; -// Button to insert new one -echo HtmlInput::button_anchor(_('Ajout'),'?p_action=divers&sa=mp&sb=ins&'.dossier::get()); - echo ''; ?>