<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->

${uiLabelMap.ProductGlobalPriceRule}

${uiLabelMap.ProductFindRule} <#if productPriceRule?exists> <#assign productPriceConds = productPriceRule.getRelated("ProductPriceCond")> <#assign productPriceActions = productPriceRule.getRelated("ProductPriceAction")>
${uiLabelMap.ProductRuleId} ${uiLabelMap.ProductRuleNameFromDateThruDate}  
${productPriceRule.productPriceRuleId}
<@htmlTemplate.renderDateTimeField name="fromDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${productPriceRule.fromDate?if_exists}" size="25" maxlength="30" id="fromDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <@htmlTemplate.renderDateTimeField name="thruDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${productPriceRule.thruDate?if_exists}" size="25" maxlength="30" id="thruDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>    <#assign saleRule = productPriceRule.isSale?exists && productPriceRule.isSale == "Y">
${uiLabelMap.ProductNotifySale}  checked="checked" />${uiLabelMap.CommonYes}  checked="checked" />${uiLabelMap.CommonNo}   
  <#if !productPriceConds?has_content && !productPriceActions?has_content>
${uiLabelMap.ProductConditions} <#assign maxCondSeqId = 1> <#assign rowClass = "2"> <#list productPriceConds as productPriceCond> class="alternate-row"> <#-- if cur seq id is a number and is greater than max, set new max for input box prefill below --> <#assign curCondSeqId = productPriceCond.productPriceCondSeqId?number> <#if (curCondSeqId >= maxCondSeqId)><#assign maxCondSeqId = curCondSeqId + 1> <#-- toggle the row color --> <#if rowClass == "2"> <#assign rowClass = "1"> <#else> <#assign rowClass = "2">
${uiLabelMap.ProductSeqId} ${uiLabelMap.ProductInputOperatorValue}  
${productPriceCond.productPriceCondSeqId}
${uiLabelMap.CommonDelete}
${uiLabelMap.CommonNew} 
${uiLabelMap.ProductActions} <#assign rowClass = "2"> <#list productPriceActions as productPriceAction> class="alternate-row"> <#-- toggle the row color --> <#if rowClass == "2"> <#assign rowClass = "1"> <#else> <#assign rowClass = "2">
${uiLabelMap.ProductSeqId} ${uiLabelMap.ProductActionTypeAmount}  
${productPriceAction.productPriceActionSeqId}
${uiLabelMap.CommonDelete}
${uiLabelMap.CommonNew}