Skip to content
Snippets Groups Projects
Commit 88774f63 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong: Committed by Sebastian Listl
Browse files

#1072355-ProduktPreisMultiEditAnpassungen

parent f3ec2d73
No related branches found
No related tags found
No related merge requests found
...@@ -102,6 +102,7 @@ ...@@ -102,6 +102,7 @@
<name>PRICELIST</name> <name>PRICELIST</name>
<documentation>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/documentation.adoc</documentation> <documentation>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/documentation.adoc</documentation>
<title>Price list</title> <title>Price list</title>
<colorProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/colorProcess.js</colorProcess>
<consumer>KeywordPricelists</consumer> <consumer>KeywordPricelists</consumer>
<state>AUTO</state> <state>AUTO</state>
<stateProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/stateProcess.js</stateProcess> <stateProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/stateProcess.js</stateProcess>
......
import("system.vars"); import("system.vars");
import("system.result"); import("system.result");
result.string("TEXT:" + vars.getString("$field.PRICELIST.displayValue")); result.string("TEXT:" + vars.getString("$field.PRODUCT_ID.displayValue"));
\ No newline at end of file \ No newline at end of file
import("system.result");
import("KeywordRegistry_basic");
import("system.vars");
import("system.neon");
let color;
switch (vars.get("$field.PRICELIST"))
{
case $KeywordRegistry.productPricelist$keyList():
color = neon.PRIORITY_LOW_COLOR;
break;
case $KeywordRegistry.productPricelist$specialList():
color = neon.PRIORITY_HIGH_COLOR;
break;
case $KeywordRegistry.productPricelist$serviceList():
color = neon.PRIORITY_NONE_COLOR
break;
case $KeywordRegistry.productPricelist$standardList():
default:
color = neon.BRAND_COLOR;
break;
}
result.string(color);
\ No newline at end of file
...@@ -107,6 +107,7 @@ ...@@ -107,6 +107,7 @@
<element>PRICE</element> <element>PRICE</element>
<element>VALID_FROM</element> <element>VALID_FROM</element>
<element>VALID_TO</element> <element>VALID_TO</element>
<element>PRODUCT_ID</element>
</editableColumns> </editableColumns>
<columns> <columns>
<neonTableColumn> <neonTableColumn>
...@@ -140,11 +141,18 @@ ...@@ -140,11 +141,18 @@
</columns> </columns>
<editRendererMapping> <editRendererMapping>
<rendererMappingEntry> <rendererMappingEntry>
<name>cef3f0d1-1976-4c69-add7-49a37893c56b</name> <name>6bd04999-36b5-4278-a975-a24414058b8e</name>
<fieldName>PRICE</fieldName> <fieldName>PRICE</fieldName>
<renderer>numberInput</renderer> <renderer>numberInput</renderer>
</rendererMappingEntry> </rendererMappingEntry>
</editRendererMapping> </editRendererMapping>
<viewRendererMapping>
<rendererMappingEntry>
<name>cece5a67-394e-4fd2-8b2d-f39660290cee</name>
<fieldName>PRICELIST</fieldName>
<renderer>badge</renderer>
</rendererMappingEntry>
</viewRendererMapping>
</multiEditTableViewTemplate> </multiEditTableViewTemplate>
</children> </children>
</neonView> </neonView>
...@@ -82,6 +82,9 @@ $KeywordRegistry.ticketType$supportTicket = function(){return "SUPPORTTICKET";}; ...@@ -82,6 +82,9 @@ $KeywordRegistry.ticketType$supportTicket = function(){return "SUPPORTTICKET";};
$KeywordRegistry.productPricelist = function(){return "ProductPricelist";}; $KeywordRegistry.productPricelist = function(){return "ProductPricelist";};
$KeywordRegistry.productPricelist$standardList = function(){return "PRICELISTDEFAULT";}; $KeywordRegistry.productPricelist$standardList = function(){return "PRICELISTDEFAULT";};
$KeywordRegistry.productPricelist$keyList = function(){return "PRICELISTKEY";};
$KeywordRegistry.productPricelist$specialList = function(){return "PRICELISTSPECIAL";};
$KeywordRegistry.productPricelist$serviceList = function(){return "PRICELISTSERVICE";};
$KeywordRegistry.quantityUnit = function(){return "QuantityUnit";}; $KeywordRegistry.quantityUnit = function(){return "QuantityUnit";};
$KeywordRegistry.quantityUnit$pieces = function(){return "QUANTITYPIECES";}; $KeywordRegistry.quantityUnit$pieces = function(){return "QUANTITYPIECES";};
......
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