Skip to content

Commit

Permalink
Merge pull request #72 from ymaheshwari1/#67
Browse files Browse the repository at this point in the history
Improved: options to only have relevant operator when selecting safety stock by hardcoding the options and removed the dynamic operators support(#67)
  • Loading branch information
ymaheshwari1 authored Feb 2, 2024
2 parents 32ad173 + b8af813 commit a22cb78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/views/BrokeringQuery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@
<ion-label>{{ translate("Brokering safety stock") }}</ion-label>
<ion-chip outline>
<ion-select :placeholder="translate('operator')" aria-label="operator" interface="popover" :value="getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, 'BRK_SAFETY_STOCK').operator" @ionChange="updateOperator($event)">
<ion-select-option v-for="(enumeration, id) in enums['COMPARISON_OPERATOR']" :key="id" :value="enumeration.enumCode">{{ enumeration.description || enumeration.enumCode }}</ion-select-option>
<ion-select-option value="equals">{{ translate("equals") }}</ion-select-option>
<ion-select-option value="greater-equals">{{ translate("greater than or equal to") }}</ion-select-option>
<ion-select-option value="greater">{{ translate("greater") }}</ion-select-option>
</ion-select>
</ion-chip>
<ion-chip outline @click="selectValue('BRK_SAFETY_STOCK', 'Add safety stock')">{{ getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "BRK_SAFETY_STOCK").fieldValue || getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "BRK_SAFETY_STOCK").fieldValue == 0 ? getFilterValue(inventoryRuleFilterOptions, conditionFilterEnums, "BRK_SAFETY_STOCK").fieldValue : "-" }}</ion-chip>
Expand Down

0 comments on commit a22cb78

Please sign in to comment.