Cleanup comments. Small bugfixes. First run.
[fa-stable.git] / gl / includes / db / gl_db_bank_trans.inc
index e0dbdf287f21ac8f374e6afc9b3c8024cf86e7f8..be1551f57d87f7bae4f832fc25e188b8b5b47a3f 100644 (file)
@@ -34,9 +34,6 @@ function add_bank_trans($type, $trans_no, $bank_act, $ref, $date_,
                $amount_bank = $amount;
        $amount_bank = round2($amount_bank, user_price_dec());  
 
-       // Also store the rate to the home
-       //$BankToHomeCurrencyRate = get_exchange_rate_to_home_currency($bank_account_currency, $date_);
-
        $sql = "INSERT INTO ".TB_PREF."bank_trans (type, trans_no, bank_act, ref,
                trans_date, amount, person_type_id, person_id) ";
 
@@ -152,7 +149,7 @@ function void_bank_trans($type, $type_no, $nested=false)
                        SET amount=0
                        WHERE type=".db_escape($type)." AND trans_no=".db_escape($type_no);
 
-       $result = db_query($sql, "could not void bank transactions for type=$type and trans_no=$type_no");
+       db_query($sql, "could not void bank transactions for type=$type and trans_no=$type_no");
 
        void_gl_trans($type, $type_no, true);