Skip to content
Snippets Groups Projects
Commit 5e9379ee authored by Pascal Neub's avatar Pascal Neub
Browse files

[Projekt: xRM-Sales][TicketNr.: 1079936][[Angebot] Button "Zu Angebot...

[Projekt: xRM-Sales][TicketNr.: 1079936][[Angebot] Button "Zu Angebot hinzufügen" inaktiv setzen, wenn Angebot nicht mehr bearbeitbar]
parent 0e4b4da4
No related branches found
No related tags found
No related merge requests found
......@@ -3,16 +3,12 @@ import("system.result");
import("Offer_lib");
import("system.vars");
if(vars.get("$param.ShownInOfferMainView_param"))
{
var res;
res = OfferUtils.isEditable(vars.get("$param.OrderOfferInformations_param")["OfferStatus_param"])?
neon.COMPONENTSTATE_EDITABLE: neon.COMPONENTSTATE_DISABLED;
result.string(res);
result.string(
OfferUtils.isEditable(JSON.parse(
vars.get("$param.OrderOfferInformations_param")
)["OfferStatus_param"]) ?
neon.COMPONENTSTATE_EDITABLE: neon.COMPONENTSTATE_DISABLED
);
}
\ 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