diff -Naur phpcompta.ori/include/class_acc_ledger_purchase.php phpcompta/include/class_acc_ledger_purchase.php --- phpcompta.ori/include/class_acc_ledger_purchase.php 2012-10-02 23:01:27.000000000 +0200 +++ phpcompta/include/class_acc_ledger_purchase.php 2012-12-05 18:08:14.409000523 +0100 @@ -794,7 +794,8 @@ /* insert into jrn */ $acc_pay->mt=$mt; - $acc_pay->desc=$e_comm; + $acc_pay->desc=(!isset($e_comm_paiement) || strlen(trim($e_comm_paiement)) == 0) ?$e_comm:$e_comm_paiement; + $mp_jr_id=$acc_pay->insert_jrn(); $acjrn->grpt_id=$acseq; $acjrn->update_internal_code($acinternal); @@ -1528,6 +1529,7 @@ { $r.=HtmlInput::hidden('e_mp_qcode_'.$e_mp,${'e_mp_qcode_'.$e_mp}); $r.=HtmlInput::hidden('acompte',$acompte); + $r.=HtmlInput::hidden('e_comm_paiement',$e_comm_paiement); /* needed for generating a invoice */ $r.=HtmlInput::hidden('qcode_benef', ${'e_mp_qcode_' . $e_mp}); $fname = new Fiche($this->db); diff -Naur phpcompta.ori/include/class_acc_ledger_sold.php phpcompta/include/class_acc_ledger_sold.php --- phpcompta.ori/include/class_acc_ledger_sold.php 2012-10-02 23:01:27.000000000 +0200 +++ phpcompta/include/class_acc_ledger_sold.php 2012-12-05 18:08:31.579002577 +0100 @@ -566,7 +566,7 @@ $let_other=$acc_pay->insert_jrnx(); /* insert into jrn */ - $acjrn->desc=$e_comm; + $acc_pay->desc=(!isset($e_comm_paiement) || strlen(trim($e_comm_paiement)) == 0) ?$e_comm:$e_comm_paiement; $acjrn->grpt_id=$acseq; $mp_jr_id=$acc_pay->insert_jrn(); $acjrn->update_internal_code($acinternal); @@ -908,6 +908,7 @@ $r.=HtmlInput::hidden('acompte',$acompte); /* needed for generating a invoice */ $r.=HtmlInput::hidden('qcode_benef',${'e_mp_qcode_'.$e_mp}); + $r.=HtmlInput::hidden('e_comm_paiement',$e_comm_paiement); $fname=new Fiche($this->db); $fname->get_by_qcode(${'e_mp_qcode_'.$e_mp}); diff -Naur phpcompta.ori/include/class_acc_payment.php phpcompta/include/class_acc_payment.php --- phpcompta.ori/include/class_acc_payment.php 2012-06-09 18:22:59.000000000 +0200 +++ phpcompta/include/class_acc_payment.php 2012-12-04 15:23:40.469795393 +0100 @@ -335,6 +335,14 @@ $acompte->value=0; $r.=_(" Acompte à déduire"); $r.=$acompte->input(); + + $e_comm_paiement=new IText('e_comm_paiement'); + $e_comm_paiement->table=0; + $e_comm_paiement->setReadOnly(false); + $e_comm_paiement->size=60; + $e_comm_paiement->tabindex=3; + $r.=_(" Libellé du paiement"); + $r.=$e_comm_paiement->input(); } $r.='
    ';