| Modifier and Type | Method and Description |
|---|---|
protected Money |
LineItem.calculateCharge(Money currentValue,
LineItemCharge charge) |
protected Money |
LineItem.calculateDiscount(Money currentValue,
LineItemDiscount discount) |
protected Money |
Order.calculateOrderCharge(Money currentValue,
OrderCharge addCharge) |
protected Money |
Order.calculateOrderDiscount(Money currentValue,
OrderDiscount discount) |
protected Money |
Order.calculateTaxTotal(Tax tax,
double autoTaxCorrectionFactor) |
Money |
LineItem.getBasePrice()
Returns the base price of this line item.
|
protected Money |
Order.getFixedTaxedAdditionalCharges(Map<OrderCharge,Money> aocValues) |
Money |
LineItem.getSubTotal()
Calculates the line item sub total.
|
Money |
Order.getSubTotal()
Calculates the sum of all line item totals (
LineItem.getTotal(Order)). |
Money |
Order.getTotal()
Calculates the order total.
|
Money |
OrderCharge.getTotal(Order context)
Calculates the total for this charge within the given order context.
|
Money |
Taxable.getTotal(Order context)
Called to fetch the taxable total for tax total calculation.
|
Money |
LineItem.getTotal(Order context)
Calculates to line item total.
|
Money |
LineItem.getTotalCharge()
Calculates the total of all line item charges.
|
Money |
Order.getTotalCharge()
Calculates the total of all charges which apply to the order at a whole.
|
Money |
Order.getTotalChargeOfType(AbstractCharge.ChargeType chargeType)
Calculates the total of all charges of one specific type which apply to the order at a whole.
|
Money |
LineItem.getTotalDiscount()
Calculates the total of all line item discounts.
|
Money |
Order.getTotalDiscount()
Calculates the total of all discounts assigned to this order.
|
Money |
Order.getTotalIncludingTaxes()
Calculates the order total always including taxes.
|
Money |
Order.getTotalTax()
Returns the overall sum of taxes within this order.
|
Money |
Order.getTotalTaxFor(Tax tax)
Calculates the total tax for a specific
Tax object. |
| Modifier and Type | Method and Description |
|---|---|
Map<LineItem,Money> |
MultiLineItemDiscount.getDiscountValues() |
Map<LineItemCharge,Money> |
LineItem.getTotalCharges()
Calculates totals of all line item charges separately.
|
Map<OrderCharge,Money> |
Order.getTotalCharges()
Calculates totals of all charges assigned to this order separately.
|
Map<LineItemDiscount,Money> |
LineItem.getTotalDiscounts()
Calculates the totals of all line item discounts separately.
|
Map<OrderDiscount,Money> |
Order.getTotalDiscounts()
Calculates totals of all discounts assigned to this order separately.
|
Map<Tax,Money> |
Order.getTotalTaxes()
Calculates total taxes for all assigned
Tax object. |
| Modifier and Type | Method and Description |
|---|---|
protected Money |
LineItem.calculateCharge(Money currentValue,
LineItemCharge charge) |
protected Money |
LineItem.calculateDiscount(Money currentValue,
LineItemDiscount discount) |
protected Money |
Order.calculateOrderCharge(Money currentValue,
OrderCharge addCharge) |
protected Money |
Order.calculateOrderDiscount(Money currentValue,
OrderDiscount discount) |
| Modifier and Type | Method and Description |
|---|---|
protected Money |
Order.getFixedTaxedAdditionalCharges(Map<OrderCharge,Money> aocValues) |
| Constructor and Description |
|---|
LineItem(Money basePrice)
Creates a new line item with the given base price and one unit.
|
LineItem(Money basePrice,
int numberOfUnits)
Creates a new line item with the given base price and number of units.
|
MultiLineItemDiscount(Money amount) |
MultiLineItemDiscount(Money amount,
MultiLineItemDiscount.MultiLineDiscountSplitStrategy mldss) |
| Modifier and Type | Method and Description |
|---|---|
Money |
Money.add(Money money)
|
Money |
Money.MoneyExtractor.extractMoney(T object) |
Money |
Money.subtract(Money money)
|
static Money |
Money.sum(Collection<Money> elements) |
static <T> Money |
Money.sum(Collection<T> elements,
Money.MoneyExtractor<T> extractor) |
static Money |
Money.sum(Money... money) |
protected static <T> Money |
Money.sumUnscaled(Collection<T> elements,
Money.MoneyExtractor<T> extractor) |
static Money |
Money.zero(Currency curr)
Shortcut to obtain commonly used zero money instances.
|
| Modifier and Type | Method and Description |
|---|---|
List<Money> |
Money.split(List<Percentage> percentages)
Splits the current Money into a list of new Money objects, based on the given list of
Percentage objects. |
List<Money> |
Money.split(Percentage... percentages)
Same as
split(List) but because of the variable parameter list the sum must not be exactly 100%. |
static List<Money> |
Money.valueOf(Currency curr,
BigDecimal... amounts)
Creates a list of money objects for a specific currency and any number of BigDecimal values.
|
static List<Money> |
Money.valueOf(Currency curr,
long... amounts)
Creates a list of money objects for a specific currency and any number of long values.
|
static List<Money> |
Money.valueOf(Currency curr,
String... amounts)
Creates a list of money objects for a specific currency and any number of String values.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
Money.add(Money money)
|
void |
Money.assertCurreniesAreEqual(Money other)
Checks if the current Currency is equal to given one.
|
static List<Percentage> |
Money.getPercentages(int scale,
Money... moneys)
Calculates a list of
Percentage objects reflecting the distribution of money within the given money list. |
static List<Percentage> |
Money.getPercentages(Money... moneys)
Calculates a list of
Percentage objects reflecting the distribution of money within the given money list. |
Money |
Money.subtract(Money money)
|
static Money |
Money.sum(Money... money) |
| Modifier and Type | Method and Description |
|---|---|
static List<Percentage> |
Money.getPercentages(List<Money> moneys,
int scale)
Calculates a list of
Percentage objects reflecting the distribution of money within the given money list. |
protected static int[] |
Money.getSortedPositionTable(List<Money> moneyList) |
static void |
Money.sortAscending(List<Money> elements) |
protected static <T> List<T> |
Money.sortByMoney(Map<T,Money> moneyMap,
Comparator<Map.Entry<?,Money>> comp) |
protected static <T> List<T> |
Money.sortByMoney(Map<T,Money> moneyMap,
Comparator<Map.Entry<?,Money>> comp) |
static <T> List<T> |
Money.sortByMoneyAscending(Map<T,Money> moneyMap) |
static <T> List<T> |
Money.sortByMoneyDescending(Map<T,Money> moneyMap) |
static void |
Money.sortDescending(List<Money> elements) |
static Money |
Money.sum(Collection<Money> elements) |
protected static long |
Money.sumUnscaled(Collection<Money> elements) |
| Modifier and Type | Method and Description |
|---|---|
Money |
RoundingStrategy.divide(Money money,
BigDecimal factor)
Divide price by factor
|
Money |
RoundingStrategy.getPercentValue(Money price,
Percentage percent)
Returns for the given
Percentage amount the calculated amount in Money. |
Money |
RoundingStrategy.multiply(Money money,
BigDecimal factor)
Multiply the given money by given factor.
|
Money |
RoundingStrategy.roundToMoney(BigDecimal amount,
Currency currency)
Creates a
Money object based on the given BigDecimal amount. |
| Modifier and Type | Method and Description |
|---|---|
Money |
RoundingStrategy.divide(Money money,
BigDecimal factor)
Divide price by factor
|
Money |
RoundingStrategy.getPercentValue(Money price,
Percentage percent)
Returns for the given
Percentage amount the calculated amount in Money. |
Money |
RoundingStrategy.multiply(Money money,
BigDecimal factor)
Multiply the given money by given factor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Money |
DefaultTaxRoundingStrategy.createMoney(BigDecimal amount,
Currency curr) |
protected Money |
DefaultRoundingStrategy.createMoney(BigDecimal amount,
Currency curr) |
Money |
DefaultRoundingStrategy.divide(Money price,
BigDecimal divisor) |
Money |
DefaultRoundingStrategy.getPercentValue(Money price,
Percentage percent) |
Money |
DefaultRoundingStrategy.multiply(Money price,
BigDecimal multiplicant) |
Money |
DefaultRoundingStrategy.roundToMoney(BigDecimal amount,
Currency currency) |
| Modifier and Type | Method and Description |
|---|---|
Money |
DefaultRoundingStrategy.divide(Money price,
BigDecimal divisor) |
Money |
DefaultRoundingStrategy.getPercentValue(Money price,
Percentage percent) |
Money |
DefaultRoundingStrategy.multiply(Money price,
BigDecimal multiplicant) |
| Constructor and Description |
|---|
NumberedLineItem(Money basePrice) |
NumberedLineItem(Money basePrice,
int numberOfUnits) |
Copyright © 2017 SAP SE. All Rights Reserved.