ilscipio/scipio-erp

View on GitHub
applications/order/webapp/ordermgr/request/ViewRequestItemInfo.ftl

Summary

Maintainability
Test Coverage
<#--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<@section title=uiLabelMap.OrderRequestItems>
    <@table type="data-list" autoAltRows=true>
      <@thead>
        <@tr>
            <@th width="10%">${uiLabelMap.ProductItem}</@th>
            <@th width="35%">${uiLabelMap.OrderProduct}</@th>
            <@th width="10%" align="right">${uiLabelMap.ProductQuantity}</@th>
            <@th width="10%" align="right">${uiLabelMap.OrderAmount}</@th>
            <@th width="10%" align="right">${uiLabelMap.OrderRequestMaximumAmount}</@th>
            <@th width="5%" align="right">&nbsp;</@th>
        </@tr>
      </@thead>
      <@tbody>
        <#list requestItems as requestItem>
            <#if requestItem.productId??>
                <#assign product = requestItem.getRelatedOne("Product", false)>
            </#if>
            <@tr valign="middle">
                <@td valign="top">
                    <#if showRequestManagementLinks??>
                        <a href="<@pageUrl>EditRequestItem?custRequestId=${requestItem.custRequestId}&amp;custRequestItemSeqId=${requestItem.custRequestItemSeqId}</@pageUrl>" class="${styles.link_nav_info_id!}">${requestItem.custRequestItemSeqId}</a>
                    <#else>
                        ${requestItem.custRequestItemSeqId}
                    </#if>
                </@td>
                <@td valign="top">
                    ${(product.internalName)!}&nbsp;
                    <#if showRequestManagementLinks??>
                        <a href="<@serverUrl>/catalog/control/ViewProduct?productId=${requestItem.productId!}</@serverUrl>" class="${styles.link_nav_info_id!}">${requestItem.productId!}</a>
                    <#else>
                        <a href="<@pageUrl>product?product_id=${requestItem.productId!}</@pageUrl>" class="${styles.link_nav_info_id!}">${requestItem.productId!}</a>
                    </#if>
                </@td>
                <@td align="right" valign="top">${requestItem.quantity!}</@td>
                <@td align="right" valign="top"><@ofbizCurrency amount=requestItem.selectedAmount!0 isoCode=custRequest.maximumAmountUomId! /></@td>
                <@td align="right" valign="top"><@ofbizCurrency amount=requestItem.maximumAmount!0 isoCode=custRequest.maximumAmountUomId! /></@td>
            </@tr>
        </#list>
      </@tbody>
    </@table>
</@section>