Skip to content
Snippets Groups Projects
Commit 017579ca authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

Merge branch 'sales_2001143_offer_attribute_state_logic' into '2021.2'

[Projekt: xRM-Sales][TicketNr.: 2001143][Offer: Attributes-Reiter erscheint...

See merge request xrm/basic!1483
parents 61d1e65b a8113aed
No related branches found
No related tags found
No related merge requests found
import("system.result");
import("system.neon");
import("system.vars");
import("Context_lib");
import("Attribute_lib");
import("Offer_lib");
import("Sql_lib");
import("system.vars");
import("system.db");
import("system.neon");
import("system.result");
if (OfferUtils.isEditable(vars.get("$field.STATUS")))
var state = neon.COMPONENTSTATE_INVISIBLE;
if(AttributeUtil.hasAttributes(ContextUtils.getCurrentContextId()))
{
if (AttributeUtil.hasAttributes(ContextUtils.getCurrentContextId()))
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
state = neon.COMPONENTSTATE_READONLY;
if(OfferUtils.isEditable(vars.get("$field.STATUS")))
{
state = neon.COMPONENTSTATE_EDITABLE;
}
}
else
{
result.string(neon.COMPONENTSTATE_READONLY);
}
\ No newline at end of file
result.string(state);
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