<#-- 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)> <#assign tasksFound = false>
${uiLabelMap.OrderOrderNeedingAttention}
<#if poList?has_content> <#assign tasksFound = true>

${uiLabelMap.OrderOrderPurchaseToBeScheduled}

<#assign alt_row = false> <#list poList as orderHeaderAndRole> <#assign orh = Static["org.apache.ofbiz.order.order.OrderReadHelper"].getHelper(orderHeaderAndRole)> <#assign statusItem = orderHeaderAndRole.getRelatedOne("StatusItem", true)> <#assign placingParty = orh.getPlacingParty()!> class="alternate-row"> <#-- toggle the row color --> <#assign alt_row = !alt_row>
${uiLabelMap.OrderOrderNumber} ${uiLabelMap.CommonName} ${uiLabelMap.OrderOrderDate} ${uiLabelMap.CommonStatus} ${uiLabelMap.OrderOrderItems} ${uiLabelMap.OrderItemTotal}      
${orderHeaderAndRole.orderId}
<#assign partyId = "_NA_"> <#if placingParty?has_content> <#assign partyId = placingParty.partyId> <#if placingParty.getEntityName() == "Person"> <#if placingParty.lastName??> ${placingParty.lastName}<#if placingParty.firstName??>, ${placingParty.firstName} <#else> ${uiLabelMap.CommonNA} <#else> <#if placingParty.groupName??> ${placingParty.groupName} <#else> ${uiLabelMap.CommonNA} <#else> ${uiLabelMap.CommonNA}
${orderHeaderAndRole.getString("orderDate")} ${statusItem.get("description",locale)?default(statusItem.statusId?default("N/A"))} ${orh.getTotalOrderItemsQuantity()?string.number} <@ofbizCurrency amount=orh.getOrderGrandTotal() isoCode=orderHeaderAndRole.currencyUom!/>    Schedule Delivery
<#if partyTasks?has_content> <#assign tasksFound = true>

${uiLabelMap.OrderWorkflow}

<#assign alt_row = false> <#list partyTasks as task> class="alternate-row"> <#-- toggle the row color --> <#assign alt_row = !alt_row>
${uiLabelMap.OrderOrderNumber} ${uiLabelMap.CommonName} ${uiLabelMap.OrderOrderDate} Total    ${uiLabelMap.OrderStartDateTime} ${uiLabelMap.CommonPriority} ${uiLabelMap.CommonMyStatus}
<#assign orderStr = "orderId=" + task.orderId + "&partyId=" + userLogin.partyId + "&roleTypeId=" + task.roleTypeId + "&workEffortId=" + task.workEffortId + "&fromDate=" + task.get("fromDate").toString()> ${task.orderId}
${task.get("orderDate").toString()}
<@ofbizCurrency amount=task.grandTotal isoCode=orderCurrencyMap.get(task.orderId)/>    <#if task.actualStartDate??> <#assign actualStartDate = task.get("actualStartDate").toString()> <#else> <#assign actualStartDate = "N/A">
${actualStartDate}
${task.priority?default("0")} ${Static["org.apache.ofbiz.order.task.TaskWorker"].getPrettyStatus(task)}
<#if roleTasks?has_content> <#assign tasksFound = true>

${uiLabelMap.CommonWorkflowActivityUserRole}

<#assign alt_row = false> <#list roleTasks as task> <#if task.statusId?? && task.statusId == "CAL_SENT"> <#else> class="alternate-row"> <#if task.statusId?? && task.statusId == "CAL_SENT"> <#else> <#-- toggle the row color --> <#assign alt_row = !alt_row>
${uiLabelMap.OrderOrderNumber} ${uiLabelMap.CommonName} ${uiLabelMap.OrderOrderDate} ${uiLabelMap.CommonTotal}    ${uiLabelMap.CommonStartDateTime} ${uiLabelMap.PartyParty} ${uiLabelMap.PartyRole} ${uiLabelMap.CommonPriority} ${uiLabelMap.CommonStatus}  
${task.orderId} <#if task.customerPartyId??> ${Static["org.apache.ofbiz.order.task.TaskWorker"].getCustomerName(task)} <#else>  
${task.get("orderDate").toString()}
<@ofbizCurrency amount=task.grandTotal isoCode=orderCurrencyMap.get(task.orderId)/>    <#if task.actualStartDate??> <#assign actualStartDate = task.get("actualStartDate").toString()> <#else> <#assign actualStartDate = "N/A">
${actualStartDate}
<#if task.wepaPartyId == "_NA_">
N/A
<#else> ${task.wepaPartyId}
${Static["org.apache.ofbiz.order.task.TaskWorker"].getRoleDescription(task)} ${task.priority?default("0")} ${Static["org.apache.ofbiz.order.task.TaskWorker"].getPrettyStatus(task)}
<#if !tasksFound>
${uiLabelMap.CommonNoTaskAssigned}
<#else>

You do not have permission to view this page. ("ORDERMGR_VIEW" or "ORDERMGR_ADMIN" needed)