diff --git a/src/locales/en.json b/src/locales/en.json index 322a726..108014a 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -89,6 +89,7 @@ "Order Rule Filters": "Order Rule Filters", "Order Rule Sort": "Order Rule Sort", "operator": "operator", + "Partial allocation cannot be disabled. Orders are filtered by item when filtering by promise date.": "Partial allocation cannot be disabled. Orders are filtered by item when filtering by promise date.", "Partially available": "Partially available", "Passed duration": "Passed duration", "Password": "Password", diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue index dbb72d7..d9ca7ad 100644 --- a/src/views/BrokeringQuery.vue +++ b/src/views/BrokeringQuery.vue @@ -203,7 +203,13 @@ {{ translate("Select if partial allocation should be allowed in this inventory rule") }} - {{ translate("Allow partial allocation") }} + + {{ translate("Allow partial allocation") }} + + + +

{{ translate("Partial allocation cannot be disabled. Orders are filtered by item when filtering by promise date.") }}

+
@@ -618,18 +624,8 @@ function isPromiseDateFilterApplied() { return; } + // When user updates partial allocation and then selects promiseDate filter then we will assume that the user wants to change the value for partialAllocation on server and thus we will not revert any change made in the partial allocation action and update its value on server const filter = getFilterValue(orderRoutingFilterOptions.value, ruleEnums, "PROMISE_DATE") - - // When promise date range is selected for order filter, we will revert any change made to the partialAllocation enum and will change it to its initial value and will disable the partial allocation feature - if(filter?.fieldValue || filter?.fieldValue == 0) { - const assignmentEnumId = JSON.parse(JSON.stringify(currentRouting.value["rules"])).find((rule: any) => rule.routingRuleId === selectedRoutingRule.value.routingRuleId)?.assignmentEnumId - inventoryRules.value.find((inventoryRule: any) => { - if(inventoryRule.routingRuleId === selectedRoutingRule.value.routingRuleId) { - inventoryRule.assignmentEnumId = assignmentEnumId - return true; - } - }) - } return filter?.fieldValue || filter?.fieldValue == 0 }