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

META-INF.resources.commerce_price_lists.commerce_tier_price_entry.details.jspf Maven / Gradle / Ivy

The 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
 */
--%>

<%
CommercePriceEntry commercePriceEntry = commerceTierPriceEntryDisplayContext.getCommercePriceEntry();

boolean discountDiscovery = BeanParamUtil.getBoolean(commerceTierPriceEntry, request, "discountDiscovery", true);

BigDecimal minQuantity = BigDecimal.ZERO;

if ((commerceTierPriceEntry != null) && (commerceTierPriceEntry.getMinQuantity() != null)) {
	minQuantity = commerceTierPriceEntry.getMinQuantity();

	minQuantity = minQuantity.stripTrailingZeros();
}
%>


	<%= 0 %>





	<%= CommercePriceConstants.PRICE_VALUE_MAX %>
	



	

	
" id="discountLevels">
<%= CommercePriceConstants.PRICE_VALUE_MIN %> <%= CommercePriceConstants.PRICE_VALUE_MAX %> <%= CommercePriceConstants.PRICE_VALUE_MIN %> <%= CommercePriceConstants.PRICE_VALUE_MAX %> <%= CommercePriceConstants.PRICE_VALUE_MIN %> <%= CommercePriceConstants.PRICE_VALUE_MAX %> <%= CommercePriceConstants.PRICE_VALUE_MIN %> <%= CommercePriceConstants.PRICE_VALUE_MAX %>
A.one('#overrideDiscount').on('change', function (event) { if (this.attr('checked')) { A.one('#discountLevels').show(); A.one('#discountLevel1').attr('disabled', false); A.one('#discountLevel1').removeClass('disabled'); A.one('#discountLevel2').attr('disabled', false); A.one('#discountLevel2').removeClass('disabled'); A.one('#discountLevel3').attr('disabled', false); A.one('#discountLevel3').removeClass('disabled'); A.one('#discountLevel4').attr('disabled', false); A.one('#discountLevel4').removeClass('disabled'); } else { A.one('#discountLevels').hide(); A.one('#discountLevel1').attr('disabled', true); A.one('#discountLevel1').addClass('disabled'); A.one('#discountLevel2').attr('disabled', true); A.one('#discountLevel2').addClass('disabled'); A.one('#discountLevel3').attr('disabled', true); A.one('#discountLevel3').addClass('disabled'); A.one('#discountLevel4').attr('disabled', true); A.one('#discountLevel4').addClass('disabled'); } });




© 2015 - 2024 Weber Informatics LLC | Privacy Policy