FSN#39262 Verwijderde facturen negeren bij contracten

svn path=/Website/branches/v2016.3/; revision=32608
This commit is contained in:
Jos Groot Lipman
2017-01-30 12:20:59 +00:00
parent 649043d65a
commit 0a331b5265
2 changed files with 3 additions and 1 deletions

View File

@@ -263,7 +263,8 @@ if (cnt_key > 0)
var invoiceExist = false;
var sql = "SELECT 'x'"
+ " FROM fin_factuur"
+ " WHERE cnt_contract_key =" + cnt_key ;
+ " WHERE fin_factuur_verwijder IS NULL"
+ " AND cnt_contract_key =" + cnt_key ;
var oRs = Oracle.Execute( sql );
if(!oRs.eof){
invoiceExist = true;;

View File

@@ -24,6 +24,7 @@ var sqltotal = "SELECT SUM (fin_factuur_totaal)"
+ " FROM fin_factuur f"
+ " WHERE f.fin_factuur_boekmaand = cnt_factuurschema.cnt_factuurschema_boekmaand"
+ " AND f.cnt_contract_key = cnt_factuurschema.cnt_contract_key"
+ " AND f.fin_factuur_verwijder IS NULL"
this_model.includes.schedule.model.fields["fintotal"] =
{ dbs: "fintotal",