<#-- 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.hasRolePermission("ORDERMGR", "_VIEW", "", "", session) || security.hasRolePermission("ORDERMGR_ROLE", "_VIEW", "", "", session)> <#assign tasksFound = false>
${uiLabelMap.OrderOrderNeedingAttention}
<#if poList?has_content> <#assign tasksFound = true>
${uiLabelMap.OrderOrderPurchaseToBeScheduled}
<#list poList as orderHeaderAndRole> <#assign orh = Static["org.ofbiz.order.order.OrderReadHelper"].getHelper(orderHeaderAndRole)> <#assign statusItem = orderHeaderAndRole.getRelatedOneCache("StatusItem")> <#assign placingParty = orh.getPlacingParty()?if_exists>
${uiLabelMap.OrderOrderNumber}
${uiLabelMap.CommonName}
${uiLabelMap.OrderOrderDate}
${uiLabelMap.CommonStatus}
Items
Total
     

${orderHeaderAndRole.orderId}
<#assign partyId = "_NA_"> <#if placingParty?has_content> <#assign partyId = placingParty.partyId> <#if placingParty.getEntityName() == "Person"> <#if placingParty.lastName?exists> ${placingParty.lastName}<#if placingParty.firstName?exists>, ${placingParty.firstName} <#else> N/A <#else> <#if placingParty.groupName?exists> ${placingParty.groupName} <#else> N/A <#else> N/A
${orderHeaderAndRole.getString("orderDate")}
${statusItem.get("description",locale)?default(statusItem.statusId?default("N/A"))}
${orh.getTotalOrderItemsQuantity()?string.number}
<@ofbizCurrency amount=orh.getOrderGrandTotal() isoCode=orderHeaderAndRole.currencyUom?if_exists/>
   Schedule Delivery
<#if partyTasks?has_content> <#assign tasksFound = true>
${uiLabelMap.OrderWorkflow}
<#list partyTasks as task>
${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}
<#if task.customerPartyId?exists> ${Static["org.ofbiz.order.task.TaskWorker"].getCustomerName(task)} <#else> N/A
${task.get("orderDate").toString()}
<@ofbizCurrency amount=task.grandTotal isoCode=orderCurrencyMap.get(task.orderId)/>
   <#if task.actualStartDate?exists> <#assign actualStartDate = task.get("actualStartDate").toString()> <#else> <#assign actualStartDate = "N/A">
${actualStartDate}
${task.priority?default("0")}
${Static["org.ofbiz.order.task.TaskWorker"].getPrettyStatus(task)}
<#if roleTasks?has_content> <#assign tasksFound = true>
${uiLabelMap.CommonWorkflowActivityUserRole}
<#list roleTasks as task> <#if task.statusId?exists && task.statusId == "CAL_SENT"> <#else> <#if task.statusId?exists && task.statusId == "CAL_SENT"> <#else>
${uiLabelMap.OrderOrderNumber} ${uiLabelMap.CommonName} ${uiLabelMap.OrderOrderDate} ${uiLabelMap.CommonTotal}    ${uiLabelMap.CommonStartDateTime} ${uiLabelMap.PartyParty} ${uiLabelMap.PartyRole} ${uiLabelMap.CommonPriority} ${uiLabelMap.CommonStatus}  

${task.orderId} <#if task.customerPartyId?exists> ${Static["org.ofbiz.order.task.TaskWorker"].getCustomerName(task)} <#else>  
${task.get("orderDate").toString()}
<@ofbizCurrency amount=task.grandTotal isoCode=orderCurrencyMap.get(task.orderId)/>
   <#if task.actualStartDate?exists> <#assign actualStartDate = task.get("actualStartDate").toString()> <#else> <#assign actualStartDate = "N/A">
${actualStartDate}
<#if task.wepaPartyId == "_NA_">
N/A
<#else> ${task.wepaPartyId}
${Static["org.ofbiz.order.task.TaskWorker"].getRoleDescription(task)}
${task.priority?default("0")}
${Static["org.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)