From 2ea32ce810d60a10a8bd8aa79c7b0dec0160c59f Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Thu, 21 Nov 2024 18:09:31 +0530 Subject: [PATCH] Improved: added the operator filter for Shipment threshold check(#260) --- src/views/BrokeringQuery.vue | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue index 3bf8d3b..67a4bf7 100644 --- a/src/views/BrokeringQuery.vue +++ b/src/views/BrokeringQuery.vue @@ -274,7 +274,7 @@
- + {{ translate("greater than or equal to") }} {{ translate("greater") }} @@ -290,7 +290,16 @@ {{ translate('Shipment threshold check') }} - {{ getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "SHIP_THREHOLD").fieldValue || getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "SHIP_THREHOLD").fieldValue == 0 ? getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "SHIP_THREHOLD").fieldValue : "-" }} +
+ + + + {{ translate("greater than or equal to") }} + {{ translate("greater") }} + + + {{ getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "SHIP_THREHOLD").fieldValue || getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "SHIP_THREHOLD").fieldValue == 0 ? getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "SHIP_THREHOLD").fieldValue : "-" }} +
@@ -461,6 +470,7 @@ let rulesForReorder = ref([]) as any const routeNameRef = ref() const operatorRef = ref() +const operatorThresholdRef = ref() const measurementRef = ref() const ruleNameRef = ref() @@ -1008,8 +1018,8 @@ async function selectValue(id: string, header: string) { return valueAlert.present(); } -function updateOperator(event: CustomEvent) { - getFilterValue(inventoryRuleFilterOptions.value, conditionFilterEnums, "BRK_SAFETY_STOCK").operator = event.detail.value +function updateOperator(event: CustomEvent, enumId: string) { + getFilterValue(inventoryRuleFilterOptions.value, conditionFilterEnums, enumId).operator = event.detail.value updateRule() }