From b8af813c28e36f76e747b1113a9c80a80e472e17 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 2 Feb 2024 12:31:23 +0530 Subject: [PATCH] Improved: options to only have relevant operator when selecting safety stock by hardcoding the options and removed the dynamic operators support(#67) --- src/locales/en.json | 3 +++ src/views/BrokeringQuery.vue | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/locales/en.json b/src/locales/en.json index ee1324e..292cba9 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -29,6 +29,7 @@ "duration": "duration", "Edit": "Edit", "Error getting user profile": "Error getting user profile", + "equals": "equals", "Failed to create brokering run": "Failed to create brokering run", "Failed to create inventory rule": "Failed to create inventory rule", "Failed to create order routing": "Failed to create order routing", @@ -43,6 +44,8 @@ "Filters": "Filters", "facility group": "facility group", "Group": "Group", + "greater": "greater", + "greater than or equal to": "greater than or equal to", "High": "High", "Inventory Filters": "Inventory Filters", "Inventory rule created successfully": "Inventory rule created successfully", diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue index 266d650..615c209 100644 --- a/src/views/BrokeringQuery.vue +++ b/src/views/BrokeringQuery.vue @@ -119,7 +119,9 @@ {{ translate("Brokering safety stock") }} - {{ enumeration.description || enumeration.enumCode }} + {{ translate("equals") }} + {{ translate("greater than or equal to") }} + {{ translate("greater") }} {{ getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "BRK_SAFETY_STOCK").fieldValue || getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "BRK_SAFETY_STOCK").fieldValue == 0 ? getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "BRK_SAFETY_STOCK").fieldValue : "-" }}