| Modifier and Type | Method and Description |
|---|---|
java.util.List<LineItemDiscount> |
LineItem.getDiscounts()
Returns all discounts assigned to this line item.
|
java.util.Map<LineItemDiscount,Money> |
LineItem.getTotalDiscounts()
Calculates the totals of all line item discounts separately.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LineItem.addDiscount(int index,
LineItemDiscount discount)
Adds a single discount to this line item at a specific position.
|
void |
LineItem.addDiscount(LineItemDiscount discount)
Adds a single discount to this line item.
|
void |
LineItem.addDiscounts(LineItemDiscount... discounts)
Adds multiple discounts to this line item.
|
protected Money |
LineItem.calculateDiscount(Money currentValue,
LineItemDiscount discount) |
void |
LineItem.removeDiscount(LineItemDiscount discount)
Removes a single discount from this line item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LineItem.addDiscounts(java.util.List<LineItemDiscount> discounts)
Adds multiple discounts to this line item.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MinimumAmountValidationStrategy.isLineItemLowerLimitValid(LineItem lineItem,
LineItemDiscount discount)
Checks if the LineItem subtotal and the Order subtotal are valid after application of the Discount to the
LineItem.
|
| Modifier and Type | Method and Description |
|---|---|
protected LineItemDiscount |
DefaultRuleEngineCalculationService.createLineItemDiscount(LineItem lineItem,
boolean absolute,
java.math.BigDecimal amount)
Creates an LineItemDiscount based on the given values and adds it to the given
lineItem. |
protected LineItemDiscount |
DefaultRuleEngineCalculationService.createLineItemDiscount(LineItem lineItem,
boolean absolute,
java.math.BigDecimal amount,
boolean perUnit)
Creates an LineItemDiscount based on the given values and adds it to the given
lineItem. |
protected LineItemDiscount |
DefaultRuleEngineCalculationService.createLineItemDiscount(LineItem lineItem,
boolean absolute,
java.math.BigDecimal amount,
boolean perUnit,
int applicableUnits) |
protected LineItemDiscount |
DefaultRuleEngineCalculationService.validateLineItemDiscount(LineItem lineItem,
boolean absolute,
Currency currency,
LineItemDiscount discount) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultRuleEngineCalculationServiceCreationMethodsTest.assertCreateLineItemDiscount(LineItemDiscount createLineItemDiscount,
java.math.BigDecimal valueOf,
boolean perUnit) |
protected void |
DefaultRuleEngineCalculationServiceCreationMethodsTest.assertCreateLineItemDiscountAbsolute(LineItem lineItem,
LineItemDiscount createLineItemDiscount,
boolean perUnit,
Currency currency,
java.math.BigDecimal valueOf) |
boolean |
DefaultMinimumAmountValidationStrategy.isLineItemLowerLimitValid(LineItem lineItem,
LineItemDiscount discount) |
protected LineItemDiscount |
DefaultRuleEngineCalculationService.validateLineItemDiscount(LineItem lineItem,
boolean absolute,
Currency currency,
LineItemDiscount discount) |
| Modifier and Type | Method and Description |
|---|---|
protected LineItemDiscount |
AbstractOrderRaoToOrderConverter.convertToLineItemDiscount(DiscountRAO discountRao,
AbstractOrderRAO cartRao) |
Copyright © 2018 SAP SE. All Rights Reserved.