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

fix offer

parent 290050a7
No related branches found
No related tags found
No related merge requests found
......@@ -869,8 +869,6 @@
<onValueChange>%aditoprj%/entity/Offer_entity/entityfields/contact_id/onValueChange.js</onValueChange>
<onValueChangeTypes>
<element>MASK</element>
<element>PROCESS</element>
<element>PROCESS_SETVALUE</element>
</onValueChangeTypes>
<onValidation>%aditoprj%/entity/Offer_entity/entityfields/contact_id/onValidation.js</onValidation>
</entityField>
......
......@@ -26,5 +26,7 @@ else
if(!vars.get("$param.ObjectRowId_param"))
{
// logging.log(JSON.stringify(vars.get("$local.type"), null, "\t"))
// logging.log(JSON.stringify(vars.get("$local.typevalue"), null, "\t"))
neon.setFieldValue("$field.OBJECT_ROWID", "");
}
\ No newline at end of file
......@@ -2,7 +2,7 @@ import("system.neon");
import("system.result");
import("system.vars");
import("Entity_lib");
/*
switch (vars.get("$sys.recordstate"))
{
case neon.OPERATINGSTATE_NEW:
......@@ -15,3 +15,4 @@ switch (vars.get("$sys.recordstate"))
default:
result.object(neon.COMPONENTSTATE_READONLY);
}
*/
\ No newline at end of file
import("system.logging");
import("system.neon");
import("system.vars");
import("system.result");
if(vars.exists("$param.ObjectRowId_param") && vars.get("$param.ObjectRowId_param"))
result.string(vars.get("$param.ObjectRowId_param"));
logging.log("--- " + JSON.stringify(vars.get("$sys.recordstate"), vars.exists("$param.ObjectRowId_param"), null, "\t"))
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.ObjectRowId_param") && vars.get("$param.ObjectRowId_param"))
result.string(vars.get("$param.ObjectRowId_param"));
\ No newline at end of file
......@@ -4,6 +4,7 @@
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/Offeritem_entity/documentation.adoc</documentation>
<title>Offeritem</title>
<grantCreateProcess>%aditoprj%/entity/Offeritem_entity/grantCreateProcess.js</grantCreateProcess>
<grantUpdateProcess>%aditoprj%/entity/Offeritem_entity/grantUpdateProcess.js</grantUpdateProcess>
<grantDeleteProcess>%aditoprj%/entity/Offeritem_entity/grantDeleteProcess.js</grantDeleteProcess>
<afterOperatingState>%aditoprj%/entity/Offeritem_entity/afterOperatingState.js</afterOperatingState>
......
......@@ -2,4 +2,4 @@ import("system.vars");
import("system.result");
import("Offer_lib");
//result.object(OfferUtils.isDeletable(vars.get("$param.OfferStatus_param")) && vars.get("$field.ASSIGNEDTO") == "");
\ No newline at end of file
result.object(OfferUtils.isDeletable(vars.get("$param.OfferStatus_param")) && vars.get("$field.ASSIGNEDTO") == "");
\ 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