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

fix product tree

parent 2da3aebd
No related branches found
No related tags found
Loading
......@@ -52,11 +52,6 @@
<triggerRecalculation v="true" />
<description>PARAMETER</description>
</entityParameter>
<entityField>
<name>PARENTID</name>
<title>Parent</title>
<groupable v="true" />
</entityField>
<entityField>
<name>PROD2PRODID</name>
<valueProcess>%aditoprj%/entity/Prod2prod_entity/entityfields/prod2prodid/valueProcess.js</valueProcess>
......@@ -145,6 +140,9 @@
<element>QUANTITY.value</element>
<element>PRODUCTCODE.value</element>
<element>PRODUCTID.value</element>
<element>PROD2PRODID.value</element>
<element>OPTIONAL.value</element>
<element>TAKEPRICE.value</element>
</recordFields>
</jDitoRecordContainer>
</recordContainers>
......
......@@ -119,7 +119,7 @@ if (vars.get("$sys.recordstate") != neon.OPERATINGSTATE_NEW)
if(prodid != "")
{
// First 3 columns are crucial, the rest is optional.
var data = db.table("select PROD2PRODID, SOURCE_ID, DEST_ID, QUANTITY, PRODUCTCODE, PRODUCTID "
var data = db.table("select PROD2PRODID, SOURCE_ID, DEST_ID, QUANTITY, PRODUCTCODE, PRODUCTID, PROD2PRODID, OPTIONAL, TAKEPRICE "
+ "from PROD2PROD join PRODUCT on PROD2PROD.SOURCE_ID = PRODUCTID "
+ "order by PRODUCTCODE");
......
import("system.vars");
import("system.neon");
import("system.db");
import("Sql_lib");
......@@ -7,4 +8,4 @@ db.deleteData("PROD2PROD", SqlCondition.begin()
.build("1=2"));
// Refresh otherwise the children of the deleted node would be moved to the root.
neon.refresh()
\ No newline at end of file
neon.refresh();
\ No newline at end of file
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