Skip to content
Snippets Groups Projects
Commit b7c5aad3 authored by Sophia Leierseder's avatar Sophia Leierseder
Browse files

bugfix forecast

parent 470cedef
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment