parent
1c62d2a475
commit
082cf0b487
@ -405,9 +405,10 @@ class Paiement extends CommonObject
|
|||||||
$acc = new Account($this->db);
|
$acc = new Account($this->db);
|
||||||
$result=$acc->fetch($this->fk_account);
|
$result=$acc->fetch($this->fk_account);
|
||||||
|
|
||||||
if (empty($this->amount)) $totalamount=$this->total; // For backward compatibility
|
$totalamount=$this->amount;
|
||||||
if ($mode == 'payment') $totalamount=$this->amount;
|
if (empty($totalamount)) $totalamount=$this->total; // For backward compatibility
|
||||||
if ($mode == 'payment_supplier') $totalamount=-$this->amount;
|
if ($mode == 'payment') $totalamount=$totalamount;
|
||||||
|
if ($mode == 'payment_supplier') $totalamount=-$totalamount;
|
||||||
|
|
||||||
// Insert payment into llx_bank
|
// Insert payment into llx_bank
|
||||||
$bank_line_id = $acc->addline(
|
$bank_line_id = $acc->addline(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user