- This repository provides access to the DATEV-interface
The only thing this repository provides - is a clean library for validating and exporting DATEV-conform data in typical type-safe C#-Code.
This project, contains a small sample of how to export sample data for: addresses, termsofpayment, bookings.
Versions starting with v1.1.0 use a different approach of generating datev-compatible output. As of now - everything aside from validation is based on the original format-files of the datev-documentation. Headers are generatec completely from those files. Data-rows are generated using the attributes DatevRow and DatevField (to associate classes with the formats) as well as ClassMaps that define how associated properties are formatted on output.
This also enables you to pick a different version. By default - by assigning a DataCategory to a DatevFile - you're assigning the default datev-version as defined in format_map.json (currently: 700) - however - you can easily use another version by assigning a DataVersion upon creating a DatevFile.
Exports types need several changes:
- entries in DataCategories.cs
- new xml files in Formats/yourfolder/
- changes in format_map.json
- new type of rows
- new type of classmap
- new validator
- new unittests
- new property in the desired type of row
- [DatevField]-Attribute for the newly created property
- new Map-Call in the respective ClassMap
https://www.nuget.org/packages/FluiTec.DatevSharp/ PM> Install-Package FluiTec.DatevSharp
- NET 4.5.2
- NET 4.6.1
- NETSTANDARD 2.0
- NET 6.0