public class CommerceTaxTestUtil
extends java.lang.Object
Constructor and Description |
---|
CommerceTaxTestUtil() |
Modifier and Type | Method and Description |
---|---|
static CommerceTaxMethod |
addCommerceByAddressTaxMethod(long userId,
long commerceChannelGroupId,
boolean percentage) |
static long |
addTaxCategoryId(long groupId) |
static long |
getDefaultCompanyTaxCategory(long groupId) |
static java.math.BigDecimal |
getPriceWithoutTaxAmount(java.math.BigDecimal priceWithTaxAmount,
java.math.BigDecimal taxRate,
java.math.RoundingMode roundingMode) |
static java.math.BigDecimal |
getPriceWithTaxAmount(java.math.BigDecimal price,
java.math.BigDecimal taxRate,
java.math.RoundingMode roundingMode) |
static void |
setCommerceMethodTaxRate(long userId,
long commerceChannelGroupId,
long cpTaxCategoryId,
long commerceTaxMethodId,
double rate) |
public static CommerceTaxMethod addCommerceByAddressTaxMethod(long userId, long commerceChannelGroupId, boolean percentage) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static long addTaxCategoryId(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static long getDefaultCompanyTaxCategory(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.math.BigDecimal getPriceWithoutTaxAmount(java.math.BigDecimal priceWithTaxAmount, java.math.BigDecimal taxRate, java.math.RoundingMode roundingMode)
public static java.math.BigDecimal getPriceWithTaxAmount(java.math.BigDecimal price, java.math.BigDecimal taxRate, java.math.RoundingMode roundingMode)
public static void setCommerceMethodTaxRate(long userId, long commerceChannelGroupId, long cpTaxCategoryId, long commerceTaxMethodId, double rate) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException