Rerun of Moving bugfixes from 2.3 to 2.4, Manufacturing routines
[fa-stable.git] / gl / includes / db / gl_db_trans.inc
index 9fd072b8daaf1a8b72cffbf2b9c5376d6b2bf450..daac59ad062fcaddd2ed6c8be7016f56f690e553 100644 (file)
@@ -44,7 +44,7 @@ function add_gl_trans($type, $trans_id, $date_, $account, $dimension, $dimension
        }
        if (!is_subledger_account($account) || $account==get_company_pref('grn_clearing_act'))
                $person_id = $person_type_id = null;
-
+       
        $sql = "INSERT INTO ".TB_PREF."gl_trans ( type, type_no, tran_date,
                account, dimension_id, dimension2_id, memo_, amount";
 
@@ -218,10 +218,9 @@ function get_gl_wo_cost_trans($trans_id, $cost_type=-1)
        if ($cost_type != -1)
                $sql .= " AND costing.cost_type=".db_escape($cost_type);
        $sql .= " AND amount < 0";
-
+       
        return db_query($sql, "The gl transactions could not be retrieved");
 }
-
 function get_gl_balance_from_to($from_date, $to_date, $account, $dimension=0, $dimension2=0)
 {
        $from = date2sql($from_date);