public final class AmountCalculator extends java.lang.Object
Calculate the missing amounts of the invoice.
Modifier and Type | Class and Description |
---|---|
static class |
AmountCalculator.InvoiceAllowanceTotalCalculator |
static class |
AmountCalculator.InvoiceChargeTotalCalculator |
static class |
AmountCalculator.ItemTaxExtractor |
static class |
AmountCalculator.ItemTotalAllowanceChargeCalculator
Calculates total
AllowanceCharge for given Item . |
static class |
AmountCalculator.RecalculationResult |
static class |
AmountCalculator.TaxAggregator
Helper class for aggregating tax information and calculating
tax basis and tax total values.
|
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
AmountCalculator() |
Modifier and Type | Method and Description |
---|---|
static SpecifiedMonetarySummation |
calculateSpecifiedMonetarySummation(Item item)
Calculates
SpecifiedMonetarySummation for given Item |
static com.neovisionaries.i18n.CurrencyCode |
getCurrency(Invoice invoice) |
static com.neovisionaries.i18n.CurrencyCode |
getCurrency(Item item)
Extracts
CurrencyCode from Item object. |
static AmountCalculator.RecalculationResult |
recalculate(Invoice invoice)
Calculates
MonetarySummation for given Invoice basing on line Item s
and global AllowanceCharge and LogisticsServiceCharge |
protected static org.slf4j.Logger log
public AmountCalculator()
public static SpecifiedMonetarySummation calculateSpecifiedMonetarySummation(Item item)
Calculates SpecifiedMonetarySummation
for given Item
item
- public static com.neovisionaries.i18n.CurrencyCode getCurrency(Invoice invoice)
public static com.neovisionaries.i18n.CurrencyCode getCurrency(Item item)
Extracts CurrencyCode
from Item
object.
item
- public static AmountCalculator.RecalculationResult recalculate(Invoice invoice)
Calculates MonetarySummation
for given Invoice
basing on line Item
s
and global AllowanceCharge
and LogisticsServiceCharge
invoice
- Copyright © 2014-2018 Konik.io. All Rights Reserved.