parent
8000777864
commit
9253fed754
@ -143,7 +143,7 @@ class Paiement extends CommonObject
|
|||||||
* @param int $closepaidinvoices 1=Also close payed invoices to paid, 0=Do nothing more
|
* @param int $closepaidinvoices 1=Also close payed invoices to paid, 0=Do nothing more
|
||||||
* @return int id of created payment, < 0 if error
|
* @return int id of created payment, < 0 if error
|
||||||
*/
|
*/
|
||||||
function create($user, $closepaidinvoices=0)
|
function create($user,$closepaidinvoices=0)
|
||||||
{
|
{
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ class Paiement extends CommonObject
|
|||||||
// Clean parameters
|
// Clean parameters
|
||||||
$totalamount = 0;
|
$totalamount = 0;
|
||||||
$atleastonepaymentnotnull = 0;
|
$atleastonepaymentnotnull = 0;
|
||||||
foreach ($this->amounts as $key => $value) // How payment is dispatched (invoice id => amount)
|
foreach ($this->amounts as $key => $value) // How payment is dispatch
|
||||||
{
|
{
|
||||||
$newvalue = price2num($value,'MT');
|
$newvalue = price2num($value,'MT');
|
||||||
$this->amounts[$key] = $newvalue;
|
$this->amounts[$key] = $newvalue;
|
||||||
@ -696,7 +696,7 @@ class Paiement extends CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Information sur l'objet
|
* Information sur l'objet
|
||||||
*
|
*
|
||||||
* @param int $id id du paiement dont il faut afficher les infos
|
* @param int $id id du paiement dont il faut afficher les infos
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user