Skip to content
Snippets Groups Projects
stateProcess.js 376 B
import("system.neon");
import("system.result");
import("Offer_lib");
import("system.vars");

if(vars.get("$param.ShownInOfferMainView_param"))
{
    result.string(
        OfferUtils.isEditable(JSON.parse(
            vars.get("$param.OrderOfferInformations_param")
        )["OfferStatus_param"]) ?
        neon.COMPONENTSTATE_EDITABLE: neon.COMPONENTSTATE_DISABLED
    );
}