Added missing field for bank charges in bank_trans, rewritten bank transaction views...
[fa-stable.git] / includes / ui / items_cart.inc
index fd8c735735bdfd4d71c015c8bc76f424582f7d14..7c9e6ef1a3ca46a3485f62e34e7dd482d811bf19 100644 (file)
@@ -417,7 +417,7 @@ class items_cart
                // update bank ledger if used
                foreach($bank_trans as $bank_id => $amount)
                        add_bank_trans($this->trans_type, $this->order_id, $bank_id, $this->reference,
-                               $this->tran_date, $amount, 0, "", $this->currency);
+                               $this->tran_date, $amount, 0, 0, "", $this->currency);
 
                // add AP/AR for journal transaction
                if ($this->trans_type == ST_JOURNAL)