feat: remittances, SDD mandates, bank reconciliation, dunning and cash flow services (#70 #71 #72)

Remittances draft the items due, write the RiBa CBI or SEPA pain.001/pain.008
file, present them (bills account and advance, or supplier payments), credit
them and record unpaid effects with their fees. The reconciliation imports
CSV, CBI and CAMT.053 statements without duplicates and proposes matches with
open items, payments, F24, remittances and saved rules. Reminders follow three
levels with late interest, e-mail/PEC/letter and customer block, also from a
scheduled task; the cash flow forecasts 90 days by week.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-13 09:06:04 +01:00
1 parent 562bf98092
commit 5bbc2120a1
12 files changed
+2869

No files matched your search

@@ -16,6 +16,7 @@ public sealed class ItalyFiscalPack : FiscalPackBase
{
AddFeature<IEInvoiceFormat>(new FatturaPaFormat());
AddFeature<ILatePaymentRules>(new LatePaymentRulesIt());
AddFeature<IRemittanceMethods>(new RemittanceMethodsIt());
AddFeature<IIncomingInvoiceReader>(new FatturaPaReader());
AddFeature<IIncomingInvoiceRules>(new IncomingInvoiceRulesIt());
AddFeature<ISelfInvoiceRules>(new SelfInvoiceRulesIt());
@@ -0,0 +1,21 @@
using Khaemhat.Core.Treasury;
using Khaemhat.Fiscal.Abstractions;
namespace Khaemhat.Fiscal.Italy;
/// <summary>
/// The Italian payment methods (codes <c>MPxx</c> of FatturaPA) that go in remittances: RiBa (MP12), SEPA direct
/// debits core (MP19, MP20) and B2B (MP21), credit transfers for the payments to suppliers (MP05).
/// </summary>
public sealed class RemittanceMethodsIt : IRemittanceMethods
{
/// <inheritdoc />
public RemittanceKind? KindOf(string? methodCode) => methodCode switch
{
"MP12" => RemittanceKind.Riba,
"MP19" or "MP20" => RemittanceKind.SddCore,
"MP21" => RemittanceKind.SddB2b,
"MP05" => RemittanceKind.SepaCreditTransfer,
_ => null,
};
}