Skip to content
Snippets Groups Projects
Commit a497c7e1 authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

Angebot Neuanlage: Vertriebsproj. READONLY solange kein Contact + condProc

parent 53dd96e5
No related branches found
No related tags found
No related merge requests found
import("system.neon");
import("system.result");
import("system.vars");
switch (vars.get("$sys.recordstate"))
{
case neon.OPERATINGSTATE_NEW:
result.object(neon.COMPONENTSTATE_EDITABLE);
break;
default:
result.object(neon.COMPONENTSTATE_READONLY);
import("system.logging");
import("system.neon");
import("system.result");
import("system.vars");
import("Entity_lib");
switch (vars.get("$sys.recordstate"))
{
case neon.OPERATINGSTATE_NEW:
//only EDITABLE if $field.CONTACT_ID is set
if(ProcessHandlingUtils.getOnValidationValue(vars.get("$field.CONTACT_ID")))
result.object(neon.COMPONENTSTATE_EDITABLE);
else
result.object(neon.COMPONENTSTATE_READONLY);
break;
default:
result.object(neon.COMPONENTSTATE_READONLY);
}
\ No newline at end of file
......@@ -70,6 +70,7 @@
<entityField>
<name>SALESPROJECTID</name>
<searchable v="false" />
<state>AUTO</state>
</entityField>
<entityField>
<name>STARTDATE</name>
......
......@@ -4,9 +4,6 @@ import("system.result");
import("system.vars");
import("Sql_lib");
logging.log("state: " + vars.get("$param.State_param"));
logging.log("contact: " + vars.get("$param.ContactId_param"));
if(vars.exists("$param.State_param") && vars.get("$param.State_param") && vars.exists("$param.ContactId_param") && vars.get("$param.ContactId_param"))
{
result.string(db.translateCondition(
......
......@@ -46,10 +46,6 @@
<name>89fd18d0-f6ee-4323-9277-464dee6da625</name>
<entityField>OPTIONAL</entityField>
</neonTableColumn>
<neonTableColumn>
<name>a31fd16c-4237-4cd9-a9de-2267f186d342</name>
<entityField>INFO</entityField>
</neonTableColumn>
<neonTableColumn>
<name>60a36c38-103f-4fdb-9e8a-b8fd6d441f14</name>
<entityField>TotalPrice</entityField>
......
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