diff --git a/applications/manufacturing/template/mrp/FindInventoryEventPlan.ftl b/applications/manufacturing/template/mrp/FindInventoryEventPlan.ftl index b9214d567b..67ad776f05 100644 --- a/applications/manufacturing/template/mrp/FindInventoryEventPlan.ftl +++ b/applications/manufacturing/template/mrp/FindInventoryEventPlan.ftl @@ -150,7 +150,7 @@ document.lookupinventory.productId.focus(); <#assign product = inven.getRelatedOne("Product", false)> <#if facilityId?has_content> #if> - <#if ! product.equals( productTmp )> + <#if !product == productTmp> <#assign quantityAvailableAtDate = 0> <#assign errorEvents = delegator.findByAnd("MrpEvent", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("mrpEventTypeId", "ERROR", "productId", inven.productId), null, false)> <#assign qohEvents = delegator.findByAnd("MrpEvent", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("mrpEventTypeId", "INITIAL_QOH", "productId", inven.productId), null, false)> diff --git a/applications/order/template/order/OrderContactInfo.ftl b/applications/order/template/order/OrderContactInfo.ftl index b50d5ea1dc..78070a36a9 100644 --- a/applications/order/template/order/OrderContactInfo.ftl +++ b/applications/order/template/order/OrderContactInfo.ftl @@ -18,7 +18,7 @@ under the License. --> <#macro updateOrderContactMech orderHeader contactMechTypeId contactMechList contactMechPurposeTypeId contactMechAddress> - <#if (!orderHeader.statusId.equals("ORDER_COMPLETED")) && !(orderHeader.statusId.equals("ORDER_REJECTED")) && !(orderHeader.statusId.equals("ORDER_CANCELLED"))> + <#if (!"ORDER_COMPLETED" == orderHeader.statusId) && !("ORDER_REJECTED" == orderHeader.statusId) && !("ORDER_CANCELLED" == orderHeader.statusId)>