pub struct ReportMapping {
pub report: String,
pub country: Country,
pub version: String,
pub valid_from: Date,
pub into: String,
pub status: MappingStatus,
pub accounts: BTreeMap<AccountId, String>,
pub credit_accounts: BTreeMap<AccountId, String>,
pub vat_accounts: Option<VatAccounts>,
pub vat_settlement: Option<VatSettlement>,
pub taxes: Vec<TaxRule>,
}Expand description
How the harmonised chart and the tax codes fall into one version of a national report.
Fields§
§report: StringThe report, e.g. de-ustva, de-hgb-266.
country: CountryThe country.
version: StringThe version of the report, e.g. a year or a taxonomy version.
valid_from: DateThe first day of the periods it applies to.
into: StringThe harmonised chart it maps, as name/version.
status: MappingStatusWhether tax advisers have reviewed it.
accounts: BTreeMap<AccountId, String>Account → position. A mapping holds for the account and every account that refines it, unless a refinement has its own; left out when the report is computed from tax codes alone.
credit_accounts: BTreeMap<AccountId, String>Account → position for a credit balance, where it differs (a bank account in overdraft).
vat_accounts: Option<VatAccounts>The accounts that hold VAT; with taxes.
vat_settlement: Option<VatSettlement>The fields for postings on VAT accounts without a tax code: payments to and refunds from the tax office.
taxes: Vec<TaxRule>The fields each tax code fills.
Implementations§
Source§impl ReportMapping
impl ReportMapping
Sourcepub fn de_ustva_2026() -> Self
pub fn de_ustva_2026() -> Self
The German VAT return of 2026 (Umsatzsteuer-Voranmeldung), from tax codes (spec/data/reports/).
Sourcepub fn de_hgb_266_2026() -> Self
pub fn de_hgb_266_2026() -> Self
The German balance sheet of 2026 (HGB § 266).
Sourcepub fn de_hgb_275_gkv_2026() -> Self
pub fn de_hgb_275_gkv_2026() -> Self
The German profit and loss account of 2026, by nature of expense (HGB § 275 Abs. 2).
Sourcepub fn de_euer_2025() -> Self
pub fn de_euer_2025() -> Self
The German income statement on a cash basis of 2025 (Anlage EÜR, § 4 Abs. 3 EStG).
Trait Implementations§
Source§impl Clone for ReportMapping
impl Clone for ReportMapping
Source§fn clone(&self) -> ReportMapping
fn clone(&self) -> ReportMapping
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more