From ad5f5cd571c5ec7820fc448bb76a2fa4b9c67954 Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Fri, 22 Feb 2019 09:04:18 +0100 Subject: [PATCH] fix --- .../recordcontainers/db/onDBUpdate.js | 2 +- entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js | 2 +- process/Salesproject_lib/process.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/entity/SalesprojectForecast_entity/recordcontainers/db/onDBUpdate.js b/entity/SalesprojectForecast_entity/recordcontainers/db/onDBUpdate.js index f165ed8fa1..ee62dca4c5 100644 --- a/entity/SalesprojectForecast_entity/recordcontainers/db/onDBUpdate.js +++ b/entity/SalesprojectForecast_entity/recordcontainers/db/onDBUpdate.js @@ -1,3 +1,3 @@ import("Salesproject_lib"); -notifyToUpdateForecast() \ No newline at end of file +Salesproject.notifyToUpdateForecast() \ No newline at end of file diff --git a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js index c5ae703c9e..222926e7c1 100644 --- a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js +++ b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js @@ -15,7 +15,7 @@ vars.get("$local.changed").forEach(function(fieldName) { fieldVar = "$field.STATE"; break; } - + if (typeValue) { Salesproject.insertMilestone(vars.getString("$field.SALESPROJECTID"), typeValue, vars.getString(fieldVar), true); } diff --git a/process/Salesproject_lib/process.js b/process/Salesproject_lib/process.js index 3ca5cd3d00..479848b10d 100644 --- a/process/Salesproject_lib/process.js +++ b/process/Salesproject_lib/process.js @@ -56,7 +56,7 @@ Salesproject.insertMilestone = function(salesprojectId, type, value, notifyForec [util.getNewUUID(), salesprojectId, type, value, vars.get("$sys.date")]); if (notifyForecast) { - this.notifyToUpdateForecast() + Salesproject.notifyToUpdateForecast() } return true; } -- GitLab