diff --git a/APPL/Shared/loadBtwTabel.asp b/APPL/Shared/loadBtwTabel.asp index a528be04df..fc0f23cc12 100644 --- a/APPL/Shared/loadBtwTabel.asp +++ b/APPL/Shared/loadBtwTabel.asp @@ -29,10 +29,10 @@ oRs.Close(); if (btwtabel_key == -1) { - sql = "SELECT f.fin_btwtabel_key" - + " FROM fin_btwtabel f" - + " WHERE w.fin_btwtabel_verwijder IS NULL" - + " AND w.fin_btwtabel_default = 1" + sql = "SELECT fin_btwtabel_key" + + " FROM fin_btwtabel " + + " WHERE fin_btwtabel_verwijder IS NULL" + + " AND fin_btwtabel_default = 1" oRs = Oracle.Execute(sql); if (!oRs.eof) btwtabel_key = oRs("fin_btwtabel_key").Value || -1; @@ -41,8 +41,8 @@ if (btwtabel_key == -1) var sql = "SELECT fin_btwtabelwaarde_perc" + " , fin_btwtabelwaarde_oms" - + " FROM fin_btwtabelwaarde w" - + " WHERE w.fin_btwtabel_key = " + btwtabel_key + + " FROM fin_btwtabelwaarde" + + " WHERE fin_btwtabel_key = " + btwtabel_key + " ORDER BY fin_btwtabelwaarde_perc"; var params = { required: required,