Change of Quick Entries to use the Tax Types instead, due to complexity using the...
[fa-stable.git] / gl / includes / db / gl_db_bank_accounts.inc
index c6b71cf368eca2625c12da49ef49c9ee9d9b91ef..53f3facfbc9ba0c168ce77e455b75a772e94e096 100644 (file)
@@ -166,12 +166,12 @@ function get_quick_entry($selected_id)
 function get_quick_entry_lines($qid)
 {
        $sql = "SELECT ".TB_PREF."quick_entry_lines.*, ".TB_PREF."chart_master.account_name,
-                       ".TB_PREF."tax_groups.name as tax_name
+                       ".TB_PREF."tax_types.name as tax_name
                FROM ".TB_PREF."quick_entry_lines
                LEFT JOIN ".TB_PREF."chart_master ON
                        ".TB_PREF."quick_entry_lines.dest_id = ".TB_PREF."chart_master.account_code
-               LEFT JOIN ".TB_PREF."tax_groups ON
-                       ".TB_PREF."quick_entry_lines.dest_id = ".TB_PREF."tax_groups.id
+               LEFT JOIN ".TB_PREF."tax_types ON
+                       ".TB_PREF."quick_entry_lines.dest_id = ".TB_PREF."tax_types.id
                WHERE 
                        qid=$qid
                ORDER by id";