Skip to content

Commit

Permalink
Fixed: Removed unwanted code (#1).
Browse files Browse the repository at this point in the history
  • Loading branch information
ravilodhi committed May 31, 2024
1 parent c1f6b6d commit bd80443
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drl/ProductFacilityRuleTemplate.drl.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<#if facilityConditions?has_content>
<#assign facilityCondition = facilityConditions?first/>
<#if "ALL" == facilityCondition.fieldValue!>
<#assign allConfigFacilities = ec.entity.find("co.hotwax.product.store.ProductStoreFacilityDetail").selectField("facilityId").condition("productStoreId", ruleGroup.productStoreId, "facilityTypeId", "CONFIGURATION").list()!>
<#assign allConfigFacilities = ec.entity.find("co.hotwax.product.store.ProductStoreFacilityDetail").selectField("facilityId").condition("productStoreId", ruleGroup.productStoreId).condition("facilityTypeId", "CONFIGURATION").list()!>
<#if allConfigFacilities?has_content>
<#list allConfigFacilities as configFacility>
<#assign facilityIds = facilityIds + [configFacility.facilityId]>
Expand All @@ -38,7 +38,6 @@
<#else>
<#assign facilityIds = Static["co.hotwax.common.DecisionRuleHelper"].valueToCollection(facilityCondition.fieldValue)/>
</#if>
<#assign facilityIds = Static["co.hotwax.common.DecisionRuleHelper"].valueToCollection(facilityCondition.fieldValue)/>
</#if>
<#if !facilityIds?has_content>
<#assign facilityGroupConditions = ec.entity.find("co.hotwax.rule.RuleCondition").condition("ruleId", decisionRule.ruleId).condition("conditionTypeEnumId", "ENTCT_ATP_FAC_GROUPS").list()!>
Expand Down

0 comments on commit bd80443

Please sign in to comment.