SVRZ#35236 BES: BTW-veld bieden voor vrije inkooporders

svn path=/Website/trunk/; revision=28032
This commit is contained in:
Erik Groener
2016-02-03 15:20:57 +00:00
parent 3c20fcd538
commit c76159b791
2 changed files with 4 additions and 2 deletions

View File

@@ -752,7 +752,8 @@ else // nieuwe bestelling. Defaults bepalen
var sql_btw = "SELECT w.fin_btwtabelwaarde_perc" var sql_btw = "SELECT w.fin_btwtabelwaarde_perc"
+ " , w.fin_btwtabelwaarde_oms" + " , w.fin_btwtabelwaarde_oms"
+ " FROM fin_btwtabelwaarde w" + " FROM fin_btwtabelwaarde w"
+ " WHERE w.fin_btwtabel_key = " + S("fin_btwtabel_default") + " WHERE w.fin_btwtabel_verwijder IS NULL"
+ " AND w.fin_btwtabel_default = 1"
+ " ORDER BY w.fin_btwtabelwaarde_perc"; + " ORDER BY w.fin_btwtabelwaarde_perc";
FCLTselector("btw", FCLTselector("btw",
sql_btw , sql_btw ,

View File

@@ -31,7 +31,8 @@ if (btwtabel_key == -1)
{ {
sql = "SELECT f.fin_btwtabel_key" sql = "SELECT f.fin_btwtabel_key"
+ " FROM fin_btwtabel f" + " FROM fin_btwtabel f"
+ " WHERE f.fin_btwtabel_key = " + S("fin_btwtabel_default"); + " WHERE w.fin_btwtabel_verwijder IS NULL"
+ " AND w.fin_btwtabel_default = 1"
oRs = Oracle.Execute(sql); oRs = Oracle.Execute(sql);
if (!oRs.eof) if (!oRs.eof)
btwtabel_key = oRs("fin_btwtabel_key").Value || -1; btwtabel_key = oRs("fin_btwtabel_key").Value || -1;