All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.commerce_order.general.jsp Maven / Gradle / Ivy

There is a newer version: 5.0.114
Show newest version
<%--
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */
--%>

<%@ include file="/init.jsp" %>

<%
CommerceOrderEditDisplayContext commerceOrderEditDisplayContext = (CommerceOrderEditDisplayContext)request.getAttribute(WebKeys.PORTLET_DISPLAY_CONTEXT);

CommerceOrder commerceOrder = commerceOrderEditDisplayContext.getCommerceOrder();

boolean hasPermission = commerceOrderEditDisplayContext.hasModelPermission(commerceOrder, ActionKeys.UPDATE);
%>

<% String name = commerceOrder.getName(); %> <%= HtmlUtil.escape(name) %> <% AccountEntry accountEntry = commerceOrder.getAccountEntry(); %> <%= StringPool.BLANK %>

<%= HtmlUtil.escape(accountEntry.getName()) %>

#<%= accountEntry.getAccountEntryId() %>

<% String purchaseOrderNumber = commerceOrder.getPurchaseOrderNumber(); %> <%= HtmlUtil.escape(purchaseOrderNumber) %> <%= HtmlUtil.escape(commerceOrderEditDisplayContext.getCommerceChannelName()) %>
<% CommerceAddress billingCommerceAddress = commerceOrder.getBillingAddress(); String billingCommerceAddressActionLabel = null; String billingCommerceAddressActionTitle = null; String billingCommerceAddressActionURL = null; if (hasPermission) { billingCommerceAddressActionLabel = LanguageUtil.get(request, (billingCommerceAddress == null) ? "add" : "edit"); billingCommerceAddressActionTitle = LanguageUtil.get(request, (billingCommerceAddress == null) ? "add-billing-address" : "edit-billing-address"); billingCommerceAddressActionURL = editBillingAddressURL; if (commerceOrder.isOpen()) { billingCommerceAddressActionURL = selectBillingAddressURL; } } %>

<%= HtmlUtil.escape(billingCommerceAddress.getStreet1()) %>

<%= HtmlUtil.escape(billingCommerceAddress.getStreet2()) %>

<%= HtmlUtil.escape(billingCommerceAddress.getStreet3()) %>

<%= commerceOrderEditDisplayContext.getDescriptiveAddress(billingCommerceAddress) %>

<% CommerceAddress shippingCommerceAddress = commerceOrder.getShippingAddress(); String shippingCommerceAddressActionLabel = null; String shippingCommerceAddressActionTitle = null; String shippingCommerceAddressActionURL = null; if (hasPermission) { shippingCommerceAddressActionLabel = LanguageUtil.get(request, (shippingCommerceAddress == null) ? "add" : "edit"); shippingCommerceAddressActionTitle = LanguageUtil.get(request, (shippingCommerceAddress == null) ? "add-shipping-address" : "edit-shipping-address"); shippingCommerceAddressActionURL = editShippingAddressURL; if (commerceOrder.isOpen()) { shippingCommerceAddressActionURL = selectShippingAddressURL; } } %>

<%= HtmlUtil.escape(shippingCommerceAddress.getStreet1()) %>

<%= HtmlUtil.escape(shippingCommerceAddress.getStreet2()) %>

<%= HtmlUtil.escape(shippingCommerceAddress.getStreet3()) %>

<%= commerceOrderEditDisplayContext.getDescriptiveAddress(shippingCommerceAddress) %>

<%= commerceOrder.getPaymentCommerceTermEntryName() %>

<%= commerceOrder.getDeliveryCommerceTermEntryName() %>

<%= commerceOrderEditDisplayContext.getCommerceOrderDateTime(commerceOrder.getOrderDate()) %> <% Date requestedDeliveryDate = commerceOrder.getRequestedDeliveryDate(); String requestedDeliveryDateActionLabel = null; String requestedDeliveryDateActionURL = null; if (hasPermission) { requestedDeliveryDateActionLabel = LanguageUtil.get(request, (requestedDeliveryDate == null) ? "add" : "edit"); requestedDeliveryDateActionURL = editRequestedDeliveryDateURL; } %> <%= commerceOrderEditDisplayContext.getCommerceOrderDateTime(requestedDeliveryDate) %> <%= HtmlUtil.escape(commerceOrderEditDisplayContext.getCommerceOrderTypeName(LanguageUtil.getLanguageId(locale))) %>
<% String printedNote = commerceOrder.getPrintedNote(); %> <%= HtmlUtil.escape(printedNote) %> <%= HtmlUtil.escape(commerceOrder.getAdvanceStatus()) %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy