LEFT JOIN ".TB_PREF."refs as refs ON (gl.type=refs.type AND gl.type_no=refs.id)"
." WHERE gl.type= ".db_escape($type)
." AND gl.type_no = ".db_escape($trans_id)
+ ." AND gl.amount <> 0"
." ORDER BY counter";
return db_query($sql, "The gl transactions could not be retrieved");
}
commit_transaction();
}
-//--------------------------------------------------------------------------------------------------
+//----------------------------------------------------------------------------------------
function clear_gl_trans($type, $trans_id, $nested=false)
{