| <#-- |
| 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. |
| --> |
| |
| <#assign shoppingCart = sessionAttributes.shoppingCart!> |
| <#assign currencyUomId = shoppingCart.getCurrency()> |
| <#assign partyId = shoppingCart.getPartyId()> |
| <#assign partyMap = Static["org.apache.ofbiz.party.party.PartyWorker"].getPartyOtherValues(request, partyId, "party", "person", "partyGroup")> |
| <#assign agreementId = shoppingCart.getAgreementId()!> |
| <#assign quoteId = shoppingCart.getQuoteId()!> |
| |
| <#if shoppingCart?has_content> |
| <#assign shoppingCartSize = shoppingCart.size()> |
| <#else> |
| <#assign shoppingCartSize = 0> |
| </#if> |
| |
| <div class="screenlet"> |
| <div class="screenlet-title-bar"> |
| <h3>${uiLabelMap.OrderOrderHeaderInfo}</h3> |
| </div> |
| <div class="screenlet-body"> |
| <form method="post" action="setOrderName" name="setCartOrderNameForm"> |
| <fieldset> |
| <label for="orderName"><strong>${uiLabelMap.OrderOrderName}</strong>:</label> |
| <input type="text" id="orderName" name="orderName" size="12" maxlength="200" value="${shoppingCart.getOrderName()?default("")}" /> |
| <input type="submit" value="${uiLabelMap.CommonSet}" /> |
| </fieldset> |
| </form> |
| <p> |
| <strong>${uiLabelMap.Party}</strong>: |
| <a href="${customerDetailLink}${partyId}${externalKeyParam!}" target="partymgr" class="buttontext">${partyId}</a> |
| <#if partyMap.person??> |
| ${partyMap.person.firstName!} ${partyMap.person.lastName!} |
| </#if> |
| <#if partyMap.partyGroup??> |
| ${partyMap.partyGroup.groupName!} |
| </#if> |
| </p> |
| <#if shoppingCart.getOrderType() != "PURCHASE_ORDER"> |
| <form method="post" action="setPoNumber" name="setCartPoNumberForm"> |
| <fieldset> |
| <label for="correspondingPoId"><strong>${uiLabelMap.OrderPONumber}</strong>:</label> |
| <input type="text" id="correspondingPoId" name="correspondingPoId" size="12" value="${shoppingCart.getPoNumber()?default("")}" /> |
| <input type="submit" value="${uiLabelMap.CommonSet}" /> |
| </fieldset> |
| </form> |
| </#if> |
| <p> |
| <strong>${uiLabelMap.CommonCurrency}</strong>: |
| ${currencyUomId} |
| </p> |
| <#if agreementId?has_content> |
| <p> |
| <strong>${uiLabelMap.AccountingAgreement}</strong>: |
| ${agreementId} |
| </p> |
| </#if> |
| <#if quoteId?has_content> |
| <p> |
| <strong>${uiLabelMap.OrderOrderQuote}</strong>: |
| ${quoteId} |
| </p> |
| </#if> |
| <p><strong>${uiLabelMap.CommonTotal}</strong>: <@ofbizCurrency amount=shoppingCart.getGrandTotal() isoCode=currencyUomId/></p> |
| </div> |
| </div> |
| <br /> |