}
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";
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);