META-INF.resources.commerce_order.payment_terms.jsp Maven / Gradle / Ivy
<%--
/**
* 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();
List paymentCommerceTermEntries = commerceOrderEditDisplayContext.getPaymentTermsEntries();
long paymentCommerceTermEntryId = commerceOrder.getPaymentCommerceTermEntryId();
%>
var continueButton = A.one('# continue');
if (continueButton) {
Liferay.Util.toggleDisabled(continueButton, true);
}
<%
Map terms = new HashMap();
%>
<%
for (CommerceTermEntry commerceTermEntry : paymentCommerceTermEntries) {
%>
<%
terms.put(commerceTermEntry.getCommerceTermEntryId(), commerceTermEntry.getDescription(LanguageUtil.getLanguageId(locale)));
}
%>
<%= commerceOrder.getPaymentCommerceTermEntryDescription() %>