Skip to content
Snippets Groups Projects
Commit ea35e43a authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

update forecast meldung wieder anzeigen

parent 589d1d33
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,13 @@ import("Salesproject_lib");
import("Sql_lib");
import("system.db");
var typeValue, fieldVar
var needToUpdateForecast = false;
// create Milestones if changed
vars.get("$local.changed").forEach(function(fieldName) {
var typeValue;
var fieldVar;
switch (fieldName) {
case "SALESPROJECT.PHASE":
typeValue = 1;
......@@ -39,11 +42,15 @@ vars.get("$local.changed").forEach(function(fieldName) {
}
if (typeValue) {
// TODO Milestone Value is still an Integer but has to be a String (varchar)
// Salesproject.insertMilestone(vars.getString("$field.SALESPROJECTID"), typeValue, vars.getString(fieldVar), true);
needToUpdateForecast = true;
// TODO Milestone Value is still an Integer but has to be a String (varchar) -> use new keywords
//Salesproject.insertMilestone(vars.getString("$field.SALESPROJECTID"), typeValue, vars.getString(fieldVar));
}
});
if (needToUpdateForecast)
Salesproject.notifyToUpdateForecast();
neon.refresh()
function _updateReasons(pDelete)
......
......@@ -682,7 +682,7 @@
<key>Standard / Individual</key>
</entry>
<entry>
<key>Please update the forecast.</key>
<key>Please update the ${FORECAST_ENGLISH}.</key>
</entry>
<entry>
<key>no Project planned</key>
......
......@@ -1166,7 +1166,8 @@
<key>Standard / Individual</key>
</entry>
<entry>
<key>Please update the forecast.</key>
<key>Please update the ${FORECAST_ENGLISH}.</key>
<value>Bitte den Forecast überprüfen.</value>
</entry>
<entry>
<key>Industry</key>
......
......@@ -688,7 +688,8 @@
<key>Standard / Individual</key>
</entry>
<entry>
<key>Please update the forecast.</key>
<key>Please update the ${FORECAST_ENGLISH}.</key>
<value>Please update the forecast.</value>
</entry>
<entry>
<key>no Project planned</key>
......
......@@ -54,7 +54,6 @@ Salesproject.insertMilestone = function(salesprojectId, type, value, notifyForec
["SALESPROJECT_CYCLEID", "SALESPROJECT_ID", "TYPE", "VALUE", "DATE_START"],
null,
[util.getNewUUID(), salesprojectId, type, value, vars.get("$sys.date")]);
if (notifyForecast) {
Salesproject.notifyToUpdateForecast()
}
......@@ -69,6 +68,7 @@ Salesproject.insertMilestone = function(salesprojectId, type, value, notifyForec
Salesproject.notifyToUpdateForecast = function() {
// TODO: logging.show durch sinnvolle Meldung ersetzen oder ähnlich...
// logging.show(translate.text("Please update the forecast."));
question.showMessage(translate.text("Please update the ${FORECAST_ENGLISH}."), question.INFORMATION, translate.text("${FORECAST_ENGLISH}"))
}
/**
......
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