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 ! 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)>
diff --git a/applications/order/template/order/OrderPaymentInfo.ftl b/applications/order/template/order/OrderPaymentInfo.ftl index 3975ad96bd..a9aae007a9 100644 --- a/applications/order/template/order/OrderPaymentInfo.ftl +++ b/applications/order/template/order/OrderPaymentInfo.ftl @@ -155,7 +155,7 @@ under the License. - <#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)> <#if orderPaymentPreference.statusId != "PAYMENT_SETTLED">
${uiLabelMap.CommonCancel} @@ -224,7 +224,7 @@ under the License. - <#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)> <#if orderPaymentPreference.statusId != "PAYMENT_SETTLED">
${uiLabelMap.CommonCancel} @@ -280,7 +280,7 @@ under the License. - <#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)> <#if orderPaymentPreference.statusId != "PAYMENT_SETTLED">
${uiLabelMap.CommonCancel} @@ -380,7 +380,7 @@ under the License. - <#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)> <#if orderPaymentPreference.statusId != "PAYMENT_SETTLED"> ${uiLabelMap.CommonCancel} @@ -420,7 +420,7 @@ under the License.
- <#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)> <#if orderPaymentPreference.statusId != "PAYMENT_SETTLED"> ${uiLabelMap.CommonCancel} @@ -479,7 +479,7 @@ under the License.
- <#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)> <#if orderPaymentPreference.statusId != "PAYMENT_SETTLED"> ${uiLabelMap.CommonCancel} @@ -575,7 +575,7 @@ under the License. ${uiLabelMap.OrderNoOrderPaymentPreferences} - <#if (!orderHeader.statusId.equals("ORDER_COMPLETED")) && !(orderHeader.statusId.equals("ORDER_REJECTED")) && !(orderHeader.statusId.equals("ORDER_CANCELLED")) && (paymentMethodValueMaps?has_content)> + <#if (!"ORDER_COMPLETED" == orderHeader.statusId) && !("ORDER_REJECTED" == orderHeader.statusId) && !("ORDER_CANCELLED" == orderHeader.statusId) && (paymentMethodValueMaps?has_content)>
diff --git a/applications/order/template/order/OrderShippingInfo.ftl b/applications/order/template/order/OrderShippingInfo.ftl index ba10b60ff7..b860686743 100644 --- a/applications/order/template/order/OrderShippingInfo.ftl +++ b/applications/order/template/order/OrderShippingInfo.ftl @@ -652,7 +652,7 @@ under the License.   - <#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)> diff --git a/applications/party/template/party/EditShoppingList.ftl b/applications/party/template/party/EditShoppingList.ftl index 7ab7273623..1c76ba6dd9 100644 --- a/applications/party/template/party/EditShoppingList.ftl +++ b/applications/party/template/party/EditShoppingList.ftl @@ -197,7 +197,7 @@ under the License. <#assign unitPrice = shoppingListItemData.unitPrice> <#assign totalPrice = shoppingListItemData.totalPrice> <#assign productVariantAssocs = shoppingListItemData.productVariantAssocs!> - <#assign isVirtual = product.isVirtual?? && product.isVirtual.equals("Y")> + <#assign isVirtual = product.isVirtual?? && "Y" == product.isVirtual> class="alternate-row"> ${shoppingListItem.productId} - ${productContentWrapper.get("PRODUCT_NAME", "html")?default("No Name")} : ${productContentWrapper.get("DESCRIPTION", "html")!} diff --git a/applications/product/template/category/EditCategoryParties.ftl b/applications/product/template/category/EditCategoryParties.ftl index 7c1fe65640..ace5ef44aa 100644 --- a/applications/product/template/category/EditCategoryParties.ftl +++ b/applications/product/template/category/EditCategoryParties.ftl @@ -89,7 +89,7 @@ under the License. <@htmlTemplate.lookupField value="${parameters.partyId!}" formName="addNewForm" name="partyId" id="partyId" fieldFormName="LookupPartyName"/> diff --git a/applications/product/template/inventory/TransferInventoryItem.ftl b/applications/product/template/inventory/TransferInventoryItem.ftl index cfc1dab927..45f66f130d 100644 --- a/applications/product/template/inventory/TransferInventoryItem.ftl +++ b/applications/product/template/inventory/TransferInventoryItem.ftl @@ -97,12 +97,12 @@ under the License.   ${uiLabelMap.ProductSerialAtpQoh}   - <#if inventoryItem?? && inventoryItem.inventoryItemTypeId.equals("NON_SERIAL_INV_ITEM")> + <#if inventoryItem?? && "NON_SERIAL_INV_ITEM" == inventoryItem.inventoryItemTypeId> ${(inventoryItem.availableToPromiseTotal)!}  / ${(inventoryItem.quantityOnHandTotal)!} - <#elseif inventoryItem?? && inventoryItem.inventoryItemTypeId.equals("SERIALIZED_INV_ITEM")> + <#elseif inventoryItem?? && "SERIALIZED_INV_ITEM" == inventoryItem.inventoryItemTypeId> ${(inventoryItem.serialNumber)!} <#elseif inventoryItem??> ${uiLabelMap.ProductErrorType} ${(inventoryItem.inventoryItemTypeId)!} ${uiLabelMap.ProductUnknownSpecifyType}. @@ -177,9 +177,9 @@ under the License. ${uiLabelMap.ProductQuantityToTransfer}   - <#if inventoryItem?? && inventoryItem.inventoryItemTypeId.equals("NON_SERIAL_INV_ITEM")> + <#if inventoryItem?? && "SERIALIZED_INV_ITEM" == inventoryItem.inventoryItemTypeId> - <#elseif inventoryItem?? && inventoryItem.inventoryItemTypeId.equals("SERIALIZED_INV_ITEM")> + <#elseif inventoryItem?? && "SERIALIZED_INV_ITEM" == inventoryItem.inventoryItemTypeId> 1 <#elseif inventoryItem??> diff --git a/applications/product/template/promo/EditProductPromoRules.ftl b/applications/product/template/promo/EditProductPromoRules.ftl index 06397a19d1..17cbffd47a 100644 --- a/applications/product/template/promo/EditProductPromoRules.ftl +++ b/applications/product/template/promo/EditProductPromoRules.ftl @@ -309,7 +309,7 @@ under the License.