Files
ofbiz-framework/applications/order/template/entry/OrderAgreements.ftl
T
Jacques Le Roux b6e15931f6 Improved: 'Reserve After Date' should be available for sales orders only
(OFBIZ-10559)

Currently, the newly introduced in (OFBIZ-10534) 'Reserve After Date' field is 
available for all types of orders, it should be available for sales orders only.

jleroux: I have also handled in when editing items

Thanks: Deepak Nigam

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1840631 13f79535-47bb-0310-9956-ffa450edef68
2018-09-12 07:48:39 +00:00

206 lines
8.0 KiB
Plaintext

<#--
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.
-->
<div class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.OrderOrderEntryCurrencyAgreementShipDates}</li>
<div class="basic-nav">
<ul>
<li><a href="javascript:document.agreementForm.submit()">${uiLabelMap.CommonContinue}</a></li>
</ul>
</div>
</ul>
<br class="clear" />
</div>
<div class="screenlet-body">
<form class="basic-form" method="post" name="agreementForm" action="<@ofbizUrl>setOrderCurrencyAgreementShipDates</@ofbizUrl>">
<table class="basic-table">
<#if agreements??>
<tr>
<td class="label"/>
<td>&nbsp;
<input type='hidden' name='hasAgreements' value='Y'/>
</td>
</tr>
<tr>
<td class="label">
<label>${uiLabelMap.OrderSelectAgreement}</label>
</td>
<td valign='middle'>
<div class='tabletext' valign='top'>
<select name="agreementId">
<option value="">${uiLabelMap.CommonNone}</option>
<#list agreements as agreement>
<option value='${agreement.agreementId}' >${agreement.agreementId} - ${agreement.description!}</option>
</#list>
</select>
</div>
</td>
</tr>
<#else>
<tr><td colspan="4">&nbsp;<input type='hidden' name='hasAgreements' value='N'/></td></tr>
</#if>
<#if agreementRoles??>
<tr>
<td class="label">
<label>
${uiLabelMap.OrderSelectAgreementRoles}
</label>
</td>
<td valign='middle'>
<div class='tabletext'>
<select name="agreementId">
<option value="">${uiLabelMap.CommonNone}</option>
<#list agreementRoles as agreementRole>
<option value='${agreementRole.agreementId!}' >${agreementRole.agreementId!} - ${agreementRole.roleTypeId!}</option>
</#list>
</select>
</div>
</td>
</tr>
</#if>
<#if "PURCHASE_ORDER" == cart.getOrderType()>
<tr>
<td class="label">
<label>${uiLabelMap.OrderOrderId}</label>
</td>
<td>
<input type='text' size='15' maxlength='100' name='orderId' value=""/>
</td>
</tr>
</#if>
<tr>
<td class="label">
<label>${uiLabelMap.OrderOrderName}</label>
</td>
<td>
<input type='text' size='60' maxlength='100' name='orderName'/>
</td>
</tr>
<#if cart.getOrderType() != "PURCHASE_ORDER">
<tr>
<td class="label">
<label>${uiLabelMap.OrderPONumber}</label>
</td>
<td>
<input type="text" class='inputBox' name="correspondingPoId" size="15" />
</td>
</tr>
</#if>
<tr>
<td class="label">
<label>
<#if agreements??>${uiLabelMap.OrderSelectCurrencyOr}
<#else>${uiLabelMap.OrderSelectCurrency}
</#if>
</label>
</td>
<td valign='middle'>
<div class='tabletext'>
<select name="currencyUomId">
<option value=""></option>
<#list currencies as currency>
<option value="${currency.uomId}" <#if currencyUomId?default('') == currency.uomId>selected="selected"</#if> >${currency.uomId}</option>
</#list>
</select>
</div>
</td>
</tr>
<tr>
<td class="label">
<label>${uiLabelMap.ProductChooseCatalog}</label>
</td>
<td>
<#if catalogCol?has_content>
<select name='CURRENT_CATALOG_ID'>
<#list catalogCol! as catalogId>
<#assign thisCatalogName = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, catalogId)>
<option value="${catalogId}" <#if currentCatalogId?default('') == catalogId>selected="selected"</#if> >${thisCatalogName}</option>
</#list>
</select>
<#else>
<input type="hidden" name='CURRENT_CATALOG_ID' value=""/>
</#if>
</td>
</tr>
<tr>
<td class="label">
<label>${uiLabelMap.WorkEffortWorkEffortId}</label>
</td>
<td>
<@htmlTemplate.lookupField formName="agreementForm" name="workEffortId" id="workEffortId" fieldFormName="LookupWorkEffort"/>
</td>
</tr>
<tr>
<td class="label">
<label>${uiLabelMap.OrderShipAfterDateDefault}</label>
</td>
<td>
<@htmlTemplate.renderDateTimeField name="shipAfterDate" event="" action="" value="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="shipAfterDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
</td>
</tr>
<tr>
<td class="label">
<label>${uiLabelMap.OrderShipBeforeDateDefault}</label>
</td>
<td>
<@htmlTemplate.renderDateTimeField name="shipBeforeDate" event="" action="" value="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="shipBeforeDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
</td>
</tr>
<#if "SALES_ORDER" == cart.getOrderType()>
<tr>
<td class="label">
<label>${uiLabelMap.OrderReserveAfterDateDefault}</label>
</td>
<td>
<@htmlTemplate.renderDateTimeField name="reserveAfterDate" event="" action="" value="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="reserveAfterDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
</td>
</tr>
</#if>
<#if "PURCHASE_ORDER" == cart.getOrderType()>
<tr>
<td class="label">
<label>
${uiLabelMap.FormFieldTitle_cancelBackOrderDate}
</label>
</td>
<td>
<@htmlTemplate.renderDateTimeField name="cancelBackOrderDate" event="" action="" value="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="cancelBackOrderDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
</td>
</tr>
</#if>
</table>
</div>
</div>
</form>