diff --git a/entity/Productprice_entity/Productprice_entity.aod b/entity/Productprice_entity/Productprice_entity.aod index 7f12819dac5c3456db46f3d21d2dbdc9e631f171..f7678ec46b2e1de22e5e1807873280e36b6539ba 100644 --- a/entity/Productprice_entity/Productprice_entity.aod +++ b/entity/Productprice_entity/Productprice_entity.aod @@ -9,7 +9,6 @@ <element>Product_entity</element> </siblings> <onValidation>%aditoprj%/entity/Productprice_entity/onValidation.js</onValidation> - <afterOperatingState>%aditoprj%/entity/Productprice_entity/afterOperatingState.js</afterOperatingState> <titlePlural>Prices</titlePlural> <recordContainer>db</recordContainer> <entityFields> @@ -51,7 +50,6 @@ </entityField> <entityField> <name>PRODUCTPRICEID</name> - <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js</valueProcess> </entityField> <entityField> <name>PRODUCT_ID</name> diff --git a/entity/Productprice_entity/afterOperatingState.js b/entity/Productprice_entity/afterOperatingState.js deleted file mode 100644 index 3a2be077156c6bd6a34aa46f6135fde573663e3b..0000000000000000000000000000000000000000 --- a/entity/Productprice_entity/afterOperatingState.js +++ /dev/null @@ -1,9 +0,0 @@ -import("system.neon"); -import("system.vars"); - -if(vars.exists("$sys.operatingstate") - && vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW - && vars.get("$local.value")) // local.value is previous operationgstate or null. This fixes not working Filter -{ - neon.refresh(); -} diff --git a/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js b/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js deleted file mode 100644 index 86ef789e064a4016f2d12c432498dc23474807aa..0000000000000000000000000000000000000000 --- a/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js +++ /dev/null @@ -1,7 +0,0 @@ -import("system.util"); -import("system.vars"); -import("system.result"); -import("system.neon"); - -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) - result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Productprice_entity/recordcontainers/db/conditionProcess.js b/entity/Productprice_entity/recordcontainers/db/conditionProcess.js index 6dfa481d2964da773d5bb96a89928c1474f2c877..afe510318a14951fab2f2f05c39060cd40790652 100644 --- a/entity/Productprice_entity/recordcontainers/db/conditionProcess.js +++ b/entity/Productprice_entity/recordcontainers/db/conditionProcess.js @@ -6,6 +6,6 @@ import("Sql_lib"); var cond = SqlCondition.begin() .andPrepareVars("PRODUCTPRICE.PRODUCT_ID", "$param.ProductId_param") .andPrepareVars("PRODUCTPRICE.CONTACT_ID", "$param.ContactId_param"); - + //TODO: use a preparedCondition when available #1030812 #1034026 result.string(db.translateCondition(cond.build("1 = 1"))); \ No newline at end of file