Files
Khaemhat/src/Khaemhat.Core/Tax/TaxEnums.cs
T
Alby96andClaude Opus 5.5 49d2bb166b feat: fiscal pack abstractions and the Italian pack (#37)
The rest of the product needs tax codes, natures, code lists and VAT rules
without knowing the country. IFiscalPack exposes the parts every country has
(tax code catalog, tax engine, calendar) and optional features by type, so a
module can tell a missing feature from a broken one. FiscalPackCatalog finds
the pack by country; only the composition root names the Italian pack, as an
architecture test now checks.

The Italian pack carries the FatturaPA 1.9.1 code lists, VAT natures and base
tax codes with their rules, summary rounding on the total per rate, the stamp
duty rule, VAT deadlines with the August and holiday shifts, withholding kinds,
basic depreciation rules and F24 codes. ADR 0025 records the design.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 21:48:09 +01:00

53 lines
1.5 KiB
C#

namespace Khaemhat.Core.Tax;
/// <summary>When the VAT of an operation becomes due (FatturaPA <c>EsigibilitaIVA</c>: I, D, S).</summary>
public enum TaxExigibility
{
/// <summary>Due when the invoice is issued (I).</summary>
Immediate = 0,
/// <summary>Due when the invoice is paid, as with cash VAT or deferred VAT for public bodies (D).</summary>
Deferred = 1,
/// <summary>Paid by the public body that buys (split payment, S).</summary>
SplitPayment = 2,
}
/// <summary>What a tax code means for the VAT return, independent of the country's code for it.</summary>
public enum TaxCodeKind
{
/// <summary>Taxable with a rate above zero.</summary>
Taxable = 0,
/// <summary>Not taxable (exports, intra-EU supplies, letters of intent).</summary>
NonTaxable = 1,
/// <summary>Exempt.</summary>
Exempt = 2,
/// <summary>Excluded from the taxable amount.</summary>
Excluded = 3,
/// <summary>Outside the scope of VAT.</summary>
NotSubject = 4,
/// <summary>VAT paid by the buyer (reverse charge).</summary>
ReverseCharge = 5,
/// <summary>Margin scheme: VAT not shown on the invoice.</summary>
Margin = 6,
/// <summary>VAT paid in another EU country.</summary>
OtherEuVat = 7,
}
/// <summary>How often the company settles VAT.</summary>
public enum VatPeriodicity
{
/// <summary>Every month.</summary>
Monthly = 0,
/// <summary>Every quarter, with interest where the country requires it.</summary>
Quarterly = 1,
}