feat: guided import and export for parties, items, prices, opening stock and chart of accounts (#44)
Companies starting on Khaemhat need to bring their master data from another system or a spreadsheet, and the chart of accounts has no Italian exchange standard, so SPEC 12.12 asks for a guided wizard and an own layout. - Administration > Import / export: CSV (separator and encoding guessed), XLSX (in-house reader, first sheet) and JSON, automatic column mapping with aliases, row-by-row check, error report, import confirmation and log entry. - Rows go through PartyService, ItemService and PriceListService, so the import has exactly the rules, error codes and history of the forms; options cover existing and missing codes, VIES and city from postal code. - Export writes the same columns as the import, plus empty templates. - Opening stock and the chart of accounts (khaemhat-coa layout, natura, tipo, flag) are check-only until M6 and M7 add the ledgers to write into. - PartyService.SaveAsync takes an explicit VIES switch for the import. - ADR 0031, wiki Import-Export, CHANGELOG and STATUS updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3dbbaba86e
commit
caa33a2cee
29 files changed
+4783
-90
No files matched your search
@@ -0,0 +1,26 @@
|
||||
namespace Khaemhat.Core.Accounting;
|
||||
|
||||
/// <summary>What a ledger account is used for, beyond its nature: the accounts the automatic postings look for.</summary>
|
||||
public enum AccountType
|
||||
{
|
||||
/// <summary>Any other account.</summary>
|
||||
Generic = 0,
|
||||
|
||||
/// <summary>The customers control account, with a sub-ledger per customer.</summary>
|
||||
Customers = 1,
|
||||
|
||||
/// <summary>The suppliers control account, with a sub-ledger per supplier.</summary>
|
||||
Suppliers = 2,
|
||||
|
||||
/// <summary>A bank account.</summary>
|
||||
Bank = 3,
|
||||
|
||||
/// <summary>Cash.</summary>
|
||||
Cash = 4,
|
||||
|
||||
/// <summary>VAT on sales or purchases, or the VAT settlement.</summary>
|
||||
Vat = 5,
|
||||
|
||||
/// <summary>Amounts due to or from the tax authority (withholdings, taxes).</summary>
|
||||
Tax = 6,
|
||||
}
|
||||
Reference in new issue
Block a user