Skip to content
Snippets Groups Projects
Commit 0e6223ca authored by Tobias Feldmann's avatar Tobias Feldmann
Browse files

#1058838 calc salesproject ai probability only if example is active

parent 09994112
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,15 @@ import("system.vars");
import("system.logging");
import("system.result");
import("AISalesproject_lib");
import("system.project");
result.string(AISalesprojectUtil.classify(vars.getString("$field.SALESPROJECTID"),
if(JSON.parse(project.getPreferenceValue("custom.ai.salesprojectProbability", "false")))
{
result.string(AISalesprojectUtil.classify(vars.getString("$field.SALESPROJECTID"),
vars.getString("$field.CONTACT_ID"),
vars.getString("$field.PHASE"),
vars.getString("$field.STATUS"),
vars.getString("$field.VOLUME"),
vars.getString("$field.PROBABILITY")));
\ No newline at end of file
vars.getString("$field.PROBABILITY")));
}
\ 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