Quittio\Core\Calculation
quittio/core#
Quittio\Core\Calculation
AllowanceSplitterSplits a document discount over several VAT groups.CalculationExceptionCalculationPolicyDecisions 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.DeclaredAmountsDeclared 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.DeclaredAmountsModeenumWhat 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).En16931CalculatorCalculation according to EN 16931.GrossPriceConverterGross price mode for B2C and shops.LargestRemainderDistributes an amount over weights so that the rounded parts add up exactly (largest remainder method).LineCalculatorCalculates the invoice line net amount (BT-131):TotalsCalculatorinterfaceCalculates line amounts, allowances and charges, the VAT breakdown and totals.