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

Merge branch 'sales_pn_1079936_zu_angebot_hinzufuegen_no_permission' into '2021.1'

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

See merge request xrm/basic!979

(cherry picked from commit 091464da)

5e9379ee [Projekt: xRM-Sales][TicketNr.: 1079936][[Angebot] Button "Zu Angebot...
parent 43f302ea
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