Code comment
This commit is contained in:
parent
141df52dd6
commit
8000777864
@ -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 dispatch
|
foreach ($this->amounts as $key => $value) // How payment is dispatched (invoice id => amount)
|
||||||
{
|
{
|
||||||
$newvalue = price2num($value,'MT');
|
$newvalue = price2num($value,'MT');
|
||||||
$this->amounts[$key] = $newvalue;
|
$this->amounts[$key] = $newvalue;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user