From bdb10a1940bad4a7bb835258e69fa58f3ecdd5e5 Mon Sep 17 00:00:00 2001 From: "p.neub" <p.neub@adito.de> Date: Mon, 17 May 2021 19:46:01 +0200 Subject: [PATCH] =?UTF-8?q?[Projekt:=20xRM-Sales][TicketNr.:=201080452][Au?= =?UTF-8?q?tomatische=20Wahrscheinlichkeit=20soll=20nicht=20h=C3=B6here=20?= =?UTF-8?q?Werte=20=C3=BCberschreiben]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js index 8c73baf3b5..29d8ada35d 100644 --- a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js +++ b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js @@ -29,6 +29,7 @@ vars.get("$local.changed").forEach(function(fieldName) { if(!isNaN(parseInt(autoProbab))) { newWhere("SALESPROJECT.SALESPROJECTID", vars.get("$field.SALESPROJECTID")) + .and("SALESPROJECT.PROBABILITY", autoProbab, SqlBuilder.LESS()) .updateFields({ "PROBABILITY": autoProbab }, "SALESPROJECT"); -- GitLab