Skip to content

[Suggestion for improvement] Add German labels to property summaries #12

@faiteanu

Description

@faiteanu

Hallo Achim,

as the DATEV-Format is a German thing, I'd suggest to add the values of the fields Label and OrdinalNumber from Format_Buchungsstapel.xml (and for the other formats as well) to the summaries of properties. I'm not sure whether you auto-generated the code for e.g. BookingBaseRow.cs, then it should be rather simple.

When I wanted to set the Umsatzsteuer-ID for a booking row, I had to look up the field name "EU-Mitgliedstaat u. UStID (Bestimmung)" in the DATEV online documentation to find the corresponding ID 040, subtract 1 to obtain the 0-based index 39, and then look through the files BookingBaseRow, BookingDocumentRow, BookingInfoRow, and BookingMiscRow to find out that value 39 corresponds to the property CountryCodeAndTaxId. That is a pretty awkward workflow.

My suggestion is thus to add the German label and field number to all summaries:

/// <summary>   Gets or sets the identifier of the country code and tax. 
/// ("EU-Mitgliedstaat u. UStID (Bestimmung)"; Field 040)</summary>
/// <value> The identifier of the country code and tax. </value>
/// <remarks>
///     MaxLength=15
/// </remarks>
[DatevField(39, 1)]
public string CountryCodeAndTaxId { get; set; }

PS: The [MaxLength(int)] attribute could be added to properties and then simplify the code in the validator classes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions