Quittio next API

Calculation

Table of Contents

Interfaces

TotalsCalculator
Calculates line amounts, allowances and charges, the VAT breakdown and totals.

Classes

AllowanceSplitter
Splits a document discount over several VAT groups.
CalculationException
CalculationPolicy
Decisions of the calculator that are not fixed by EN 16931. The policy is configuration of the run and not stored with the invoice: the same data calculated under another policy can give other amounts.
DeclaredAmounts
Declared amounts of an existing document (Meta::FLAG_DECLARED_AMOUNTS): whether they are needed at all, and the fingerprint of the amount inputs they belong to.
En16931Calculator
Calculation according to EN 16931.
GrossPriceConverter
Gross price mode for B2C and shops.
LargestRemainder
Distributes an amount over weights so that the rounded parts add up exactly (largest remainder method).
LineCalculator
Calculates the invoice line net amount (BT-131):

Enums

DeclaredAmountsMode
What the calculator does with the declared amounts of an existing document (line net amounts BT-131 and VAT breakdown BT-116, BT-117 that another system rounded differently, see Meta::FLAG_DECLARED_AMOUNTS).
On this page

Search results