<#-- 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. --> <#if security.hasEntityPermission("ORDERMGR", "_VIEW", session)> <#if parameters.hideFields?has_content>
<#if parameters.hideFields?default("N")=='Y'> <#else>

<#if parameters.hideFields?default("N") != "Y">
<#if goodIdentificationTypes?has_content>
${uiLabelMap.OrderOrderId}  
${uiLabelMap.OrderOrderName}  
${uiLabelMap.OrderExternalId}  
${uiLabelMap.OrderCustomerPo}  
${uiLabelMap.OrderInternalCode}  
${uiLabelMap.ProductProductId}   <@htmlTemplate.lookupField value='${requestParameters.productId!}' formName="lookuporder" name="productId" id="productId" fieldFormName="LookupProduct"/>
${uiLabelMap.ProductGoodIdentificationType}  
${uiLabelMap.ProductGoodIdentification}  
${uiLabelMap.ProductInventoryItemId}  
${uiLabelMap.ProductSerialNumber}  
${uiLabelMap.ProductSoftIdentifier}  
${uiLabelMap.PartyRoleType}  
${uiLabelMap.PartyPartyId}   <@htmlTemplate.lookupField value='${requestParameters.partyId!}' formName="lookuporder" name="partyId" id="partyId" fieldFormName="LookupPartyName"/>
${uiLabelMap.CommonUserLoginId}   <@htmlTemplate.lookupField value='${requestParameters.userLoginId!}' formName="lookuporder" name="userLoginId" id="userLoginId" fieldFormName="LookupUserLoginAndPartyDetails"/>
${uiLabelMap.OrderOrderType}  
${uiLabelMap.AccountingBillingAccount}   <@htmlTemplate.lookupField value='${requestParameters.billingAccountId!}' formName="lookuporder" name="billingAccountId" id="billingAccountId" fieldFormName="LookupBillingAccount"/>
${uiLabelMap.CommonCreatedBy}  
${uiLabelMap.OrderSalesChannel}  
${uiLabelMap.ProductProductStore}  
${uiLabelMap.ProductWebSite}  
${uiLabelMap.CommonStatus}   <#list orderStatuses as orderStatus>
${uiLabelMap.OrderContainsBackOrders}  
${uiLabelMap.OrderSelectShippingMethod}  
${uiLabelMap.OrderViewed}  
${uiLabelMap.OrderAddressVerification}  
${uiLabelMap.OrderScore}  
${uiLabelMap.CommonDateFilter}  
<@htmlTemplate.renderDateTimeField name="minDate" event="" action="" value="${requestParameters.minDate!}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="minDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> ${uiLabelMap.CommonFrom}
<@htmlTemplate.renderDateTimeField name="maxDate" event="" action="" value="${requestParameters.maxDate!}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="maxDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> ${uiLabelMap.CommonThru}
 
checked="checked" />
 
checked="checked" />
 
checked="checked" />
 
checked="checked" />
${uiLabelMap.OrderShipToCountry}  
${uiLabelMap.AccountingPaymentStatus}  

   
<#if requestParameters.hideFields?default("N") != "Y">

<#if paramIdList?? && paramIdList?has_content> <#list paramIdList as paramIds> <#assign paramId = paramIds.split("=")/>
 
<#if paramList??> <#assign ampersand = "&"> <#else> <#assign ampersand = ""> ${uiLabelMap.OrderRunAction}
<#if (requestParameters.filterInventoryProblems?default("N") == "Y") || (requestParameters.filterPOsOpenPastTheirETA?default("N") == "Y") || (requestParameters.filterPOsWithRejectedItems?default("N") == "Y") || (requestParameters.filterPartiallyReceivedPOs?default("N") == "Y")> <#else> <#if orderList?has_content> <#assign alt_row = false> <#list orderList as orderHeader> <#assign orh = Static["org.apache.ofbiz.order.order.OrderReadHelper"].getHelper(orderHeader)> <#assign statusItem = orderHeader.getRelatedOne("StatusItem", true)> <#assign orderType = orderHeader.getRelatedOne("OrderType", true)> <#if orderType.orderTypeId == "PURCHASE_ORDER"> <#assign displayParty = orh.getSupplierAgent()!> <#else> <#assign displayParty = orh.getPlacingParty()!> <#assign partyId = displayParty.partyId?default("_NA_")> class="alternate-row"> <#if orderHeader.orderName?has_content> <#else> <#if (requestParameters.filterInventoryProblems?default("N") == "Y") || (requestParameters.filterPOsOpenPastTheirETA?default("N") == "Y") || (requestParameters.filterPOsWithRejectedItems?default("N") == "Y") || (requestParameters.filterPartiallyReceivedPOs?default("N") == "Y")> <#-- toggle the row color --> <#assign alt_row = !alt_row> <#else> <#if lookupErrorMessage??>
${uiLabelMap.OrderOrderType} ${uiLabelMap.OrderOrderId} ${uiLabelMap.OrderOrderName} ${uiLabelMap.PartyName} ${uiLabelMap.OrderSurvey} ${uiLabelMap.OrderItemsOrdered} ${uiLabelMap.OrderItemsBackOrdered} ${uiLabelMap.OrderItemsReturned} ${uiLabelMap.OrderRemainingSubTotal} ${uiLabelMap.OrderOrderTotal}  ${uiLabelMap.CommonStatus} ${uiLabelMap.CommonFilter}${uiLabelMap.CommonStatus} ${uiLabelMap.OrderDate} ${uiLabelMap.PartyPartyId}  
${orderType.get("description",locale)?default(orderType.orderTypeId?default(""))} ${orderHeader.orderId}${orderHeader.orderName}
<#if displayParty?has_content> <#assign displayPartyNameResult = dispatcher.runSync("getPartyNameForDate", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("partyId", displayParty.partyId, "compareDate", orderHeader.orderDate, "userLogin", userLogin))/> ${displayPartyNameResult.fullName?default("[${uiLabelMap.OrderPartyNameNotFound}]")} <#else> ${uiLabelMap.CommonNA}
${orh.hasSurvey()?string.number} ${orh.getTotalOrderItemsQuantity()?string.number} ${orh.getOrderBackorderQuantity()?string.number} ${orh.getOrderReturnedQuantity()?string.number} <@ofbizCurrency amount=orderHeader.remainingSubTotal isoCode=orh.getCurrency()/> <@ofbizCurrency amount=orderHeader.grandTotal isoCode=orh.getCurrency()/>   ${statusItem.get("description",locale)?default(statusItem.statusId?default("N/A"))} <#if filterInventoryProblems.contains(orderHeader.orderId)> Inv  <#if filterPOsOpenPastTheirETA.contains(orderHeader.orderId)> ETA  <#if filterPOsWithRejectedItems.contains(orderHeader.orderId)> Rej  <#if filterPartiallyReceivedPOs.contains(orderHeader.orderId)> Part  ${orderHeader.getString("orderDate")} <#if partyId != "_NA_"> ${partyId} <#else> ${uiLabelMap.CommonNA} ${uiLabelMap.CommonView}

${uiLabelMap.OrderNoOrderFound}

${lookupErrorMessage}

<#else>

${uiLabelMap.OrderViewPermissionError}