feat: automatic codes and automatic filling (#43)
Parties, items and the CRM archives need codes given by the system without
duplicates, and the address and bank fields should fill themselves; this adds
both before the party and item screens that use them.
- CodeMask ({seq:0000}, {anno}, {categoria}) and code_sequences (migration
015): one sequence per rule, year and category, taken under a lock in the
transaction that saves the record, skipping codes written by hand
- CodeRuleService: rules in company settings with the masks of SPEC 11.12,
validation, preview of the next code, manual code allowed or not
- AutoFillService: municipality from postal code and back, personal tax code,
VIES, bank and BIC from the IBAN, delivery date on working days, options
that can be switched off (the ECB job honours its option)
- IBankDirectory.ReadIban gives ABI and CAB even without the ABI list; the
Italian pack now registers the directory
- Company preferences page (mockup 074) at /tabelle/preferenze, in the menu
- aria-checked now renders true/false on switch rows and profile radios
- ADR 0027, wiki, CHANGELOG, STATUS, DATA-MODEL
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9bcf8c1082
commit
07555de700
27 files changed
+1627
-40
No files matched your search
@@ -83,10 +83,10 @@ public interface ITaxIdentifierRules
|
||||
|
||||
/// <summary>A bank found from its national code.</summary>
|
||||
/// <param name="BankCode">The national bank code (Italy: ABI).</param>
|
||||
/// <param name="Name">The name of the bank.</param>
|
||||
/// <param name="Name">The name of the bank, <see langword="null"/> when the directory does not know it.</param>
|
||||
/// <param name="Bic">The BIC, when known.</param>
|
||||
/// <param name="BranchCode">The branch code (Italy: CAB), when the IBAN has one.</param>
|
||||
public sealed record BankInfo(string BankCode, string Name, string? Bic, string? BranchCode);
|
||||
public sealed record BankInfo(string BankCode, string? Name, string? Bic, string? BranchCode);
|
||||
|
||||
/// <summary>The country's directory of banks, to fill bank name and BIC from an IBAN.</summary>
|
||||
public interface IBankDirectory
|
||||
@@ -95,4 +95,9 @@ public interface IBankDirectory
|
||||
/// <param name="iban">The IBAN.</param>
|
||||
/// <returns>The bank, or <see langword="null"/> if the IBAN is foreign, invalid or the bank unknown.</returns>
|
||||
BankInfo? FindByIban(string? iban);
|
||||
|
||||
/// <summary>The bank and branch codes of a domestic IBAN, with name and BIC when the directory knows the bank.</summary>
|
||||
/// <param name="iban">The IBAN.</param>
|
||||
/// <returns>The codes, or <see langword="null"/> if the IBAN is foreign or invalid.</returns>
|
||||
BankInfo? ReadIban(string? iban);
|
||||
}
|
||||
Reference in new issue
Block a user