Revert "Avoid silly assignment"

This reverts commit fa51e310b8.
This commit is contained in:
Laurent Destailleur 2013-09-07 19:27:35 +02:00
parent 1c62d2a475
commit 082cf0b487

View File

@ -405,9 +405,10 @@ class Paiement extends CommonObject
$acc = new Account($this->db);
$result=$acc->fetch($this->fk_account);
if (empty($this->amount)) $totalamount=$this->total; // For backward compatibility
if ($mode == 'payment') $totalamount=$this->amount;
if ($mode == 'payment_supplier') $totalamount=-$this->amount;
$totalamount=$this->amount;
if (empty($totalamount)) $totalamount=$this->total; // For backward compatibility
if ($mode == 'payment') $totalamount=$totalamount;
if ($mode == 'payment_supplier') $totalamount=-$totalamount;
// Insert payment into llx_bank
$bank_line_id = $acc->addline(