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

ebnable grant update process for offer

parent 66e3e947
No related branches found
No related tags found
No related merge requests found
import("system.logging");
import("system.vars");
import("system.result");
import("Offer_lib");
logging.log(OfferUtils.isEditable(vars.get("$field.STATUS")))
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")));
\ No newline at end of file
......@@ -61,8 +61,6 @@ OfferUtils.getOfferNumberValidationFailString = function() {
OfferUtils.isEditable = function(status) {
// TODO: Administrator darf immer ändern, warten auf neue Berechtigungslogik?
logging.log(status.toSource())
logging.log($KeywordRegistry.offerStatus$sent())
// Offer should be editable if offer state not equals "Sent", "Won" or "Lost"
return status != $KeywordRegistry.offerStatus$sent() && status != $KeywordRegistry.offerStatus$won() && status != $KeywordRegistry.offerStatus$lost();
}
......
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