From b7c5aad3fe7b6212cf9b42d64b07e27ebbfb4f50 Mon Sep 17 00:00:00 2001 From: Sophia Leierseder <s.leierseder@adito.de> Date: Fri, 7 Jun 2019 13:57:09 +0200 Subject: [PATCH] bugfix forecast --- .../entityfields/overall_forecast/valueProcess.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/entity/SalesprojectAnalyses_entity/entityfields/overall_forecast/valueProcess.js b/entity/SalesprojectAnalyses_entity/entityfields/overall_forecast/valueProcess.js index 38822523a7..d6f89d038d 100644 --- a/entity/SalesprojectAnalyses_entity/entityfields/overall_forecast/valueProcess.js +++ b/entity/SalesprojectAnalyses_entity/entityfields/overall_forecast/valueProcess.js @@ -7,8 +7,7 @@ import("Sql_lib"); import("system.SQLTYPES") var forecast = db.cell(SqlCondition.begin() - .buildSql("select sum(VOLUME) from SALESPROJECT_FORECAST", "1=2")); - .andPrepare("FORECAST.DATE_START", datetime.toDate(vars.get("$sys.date"), "yyyy"), "year(#) = ?", SQLTYPES.INTEGER) - .buildSql("select sum(VOLUME) from FORECAST", "1=2")); + .andPrepare("FORECAST.DATE_START", datetime.toDate(vars.get("$sys.date"), "yyyy"), "year(#) = ?", SQLTYPES.INTEGER) + .buildSql("select sum(VOLUME) from FORECAST", "1=2")); result.string(forecast); \ No newline at end of file -- GitLab