diff --git a/entity/Offer_entity/entityfields/fulloffercode/valueProcess.js b/entity/Offer_entity/entityfields/fulloffercode/valueProcess.js index d39bcd7a3c4880d06e2db9776a472e92ad9a34ac..80bc199de9497710301fa61c141c4fe62aa9dd45 100644 --- a/entity/Offer_entity/entityfields/fulloffercode/valueProcess.js +++ b/entity/Offer_entity/entityfields/fulloffercode/valueProcess.js @@ -1,5 +1,9 @@ +import("system.translate"); import("system.result"); import("system.vars"); -//a filedGroup cannot be placed in a table (filter-view) at the moment and therefore a separate field is needed: -result.string(vars.get("$field.OFFERCODE") + "-" + vars.get("$field.VERSNR")); +//a fieldGroup cannot be placed in a table (filter-view) at the moment and therefore a separate field is needed: +if(!vars.get("$field.OFFERCODE") && !vars.get("$field.VERSNR")) + result.string(translate.text("Offer")); +else + result.string(vars.get("$field.OFFERCODE") + "-" + vars.get("$field.VERSNR"));