feat: general ledger, automatic posting, VAT settlement, withholdings and F24 (#62 #63 #64 #65 #66 #67 #68)
M7 adds the double-entry ledger so that the documents of M5 and M6 reach the accounts without retyping, and the Italian VAT obligations can be prepared from the same data. - Chart of accounts on three levels with the Italian "PMI standard" model in the fiscal pack, journal templates with proposed lines, VAT registers; the chart import now writes the accounts and exports them (#62, ADR 0036). - Journal entries: draft, posted, final with the libro giornale number, reversal; recurring entries with the nightly ledger.recurring job (#63). - Documents post their entry inside the document transaction (PostingEngine, LedgerPoster) with VAT lines, open items and withholdings; a change rewrites the same entry, a cancellation removes or reverses it (#64, ADR 0037). - VAT registers with final print, monthly or quarterly settlement with pro rata, interest, minimum and advance, confirmation with the LIQ entry, period lock and F24 line, LIPE file and F24 data (#65). - Operated and suffered withholdings, CU data, stamp duty by quarter with the 5,000 euro threshold, F24 summary with its payment entry (#66). - Party ledgers, account ledgers, trial balance and libro giornale (#67). - Demo accounting with the settlements of the past months confirmed and checked by hand in a test; wiki Contabilita, IVA, Fiscalita italiana completed with screenshots; CHANGELOG 0.7.0, STATUS, ADR 0036-0037 (#68). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
838362bfe1
commit
9e3ba92993
83 files changed
+13838
-497
No files matched your search
@@ -1,6 +1,10 @@
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Reflection;
|
||||
using Khaemhat.Application.Preferences;
|
||||
using Khaemhat.Core.Accounting;
|
||||
using Khaemhat.Core.Tax;
|
||||
using Khaemhat.Web.Ledger;
|
||||
using Khaemhat.Web.Shell;
|
||||
|
||||
namespace Khaemhat.Web.Tests.Shell;
|
||||
@@ -94,6 +98,26 @@ public sealed partial class LocalizationRulesTests
|
||||
Assert.IsEmpty(keys.Where(k => !ShellTests.Texts.Contains(k)).ToList());
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void LedgerEnumsAndErrors_HaveTexts()
|
||||
{
|
||||
var keys = new List<string>();
|
||||
foreach (var type in new[]
|
||||
{
|
||||
typeof(GlEntryStatus), typeof(GlEntrySource), typeof(RecurrenceFrequency), typeof(AccountNature), typeof(AccountType),
|
||||
typeof(JournalArea), typeof(PostingRole), typeof(AccountSide), typeof(VatRegisterKind), typeof(VatSettlementStatus),
|
||||
typeof(WithholdingStatus), typeof(VatAdvanceMethod), typeof(VatPeriodicity), typeof(TaxExigibility),
|
||||
})
|
||||
{
|
||||
keys.AddRange(Enum.GetValues(type).Cast<Enum>().Select(LedgerScreens.EnumKey));
|
||||
}
|
||||
|
||||
keys.AddRange(typeof(LedgerErrors).GetFields(BindingFlags.Public | BindingFlags.Static)
|
||||
.Where(f => f.IsLiteral).Select(f => (string)f.GetRawConstantValue()!));
|
||||
|
||||
Assert.IsEmpty(keys.Where(k => !ShellTests.Texts.Contains(k)).ToList());
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TextFiles_AvoidCharactersGiteaFlagsAsAmbiguous()
|
||||
{
|
||||
@@ -271,6 +295,6 @@ public sealed partial class LocalizationRulesTests
|
||||
[GeneratedRegex(@"&[a-zA-Z]+;|&#\d+;")]
|
||||
private static partial Regex EntityPattern();
|
||||
|
||||
[GeneratedRegex("\"((?:Shell|Pages|Auth|Common|Ui|Dashboard|Parties|Items|ImportExport)\\.[A-Za-z0-9_.]+)\"")]
|
||||
[GeneratedRegex("\"((?:Shell|Pages|Auth|Common|Ui|Dashboard|Parties|Items|ImportExport|Ledger)\\.[A-Za-z0-9_.]+)\"")]
|
||||
private static partial Regex KeyPattern();
|
||||
}
|
||||
Reference in new issue
Block a user