When voiding Inventory Adjustment transaction, the costs are not getting adjusted.
[fa-stable.git] / gl / includes / db / gl_db_bank_trans.inc
index 90dc8c4afd40d2522d96e2042475e87b271b1ee7..a0aab62eac8a9e39ce21279d072f39361acfe4f9 100644 (file)
@@ -32,7 +32,7 @@ function add_bank_trans($type, $trans_no, $bank_act, $ref, $date_,
        }
        else
                $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_);