Skip to content
Snippets Groups Projects
Commit d19d894a authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Merge branch '#1072355-ProduktPreisMultiEditAnpassungen' into '2021.0.0'

#1072355-ProduktPreisMultiEditAnpassungen

See merge request xrm/basic!630
parents 3262c399 88774f63
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,7 @@
<name>PRICELIST</name>
<documentation>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/documentation.adoc</documentation>
<title>Price list</title>
<colorProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/colorProcess.js</colorProcess>
<consumer>KeywordPricelists</consumer>
<state>AUTO</state>
<stateProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/stateProcess.js</stateProcess>
......
import("system.vars");
import("system.result");
result.string("TEXT:" + vars.getString("$field.PRICELIST.displayValue"));
\ No newline at end of file
result.string("TEXT:" + vars.getString("$field.PRODUCT_ID.displayValue"));
\ 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 @@
<element>PRICE</element>
<element>VALID_FROM</element>
<element>VALID_TO</element>
<element>PRODUCT_ID</element>
</editableColumns>
<columns>
<neonTableColumn>
......@@ -140,11 +141,18 @@
</columns>
<editRendererMapping>
<rendererMappingEntry>
<name>cef3f0d1-1976-4c69-add7-49a37893c56b</name>
<name>6bd04999-36b5-4278-a975-a24414058b8e</name>
<fieldName>PRICE</fieldName>
<renderer>numberInput</renderer>
</rendererMappingEntry>
</editRendererMapping>
<viewRendererMapping>
<rendererMappingEntry>
<name>cece5a67-394e-4fd2-8b2d-f39660290cee</name>
<fieldName>PRICELIST</fieldName>
<renderer>badge</renderer>
</rendererMappingEntry>
</viewRendererMapping>
</multiEditTableViewTemplate>
</children>
</neonView>
......@@ -82,6 +82,9 @@ $KeywordRegistry.ticketType$supportTicket = function(){return "SUPPORTTICKET";};
$KeywordRegistry.productPricelist = function(){return "ProductPricelist";};
$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$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