Write a DATEV Buchungsstapel
write_buchungsstapelCreate a DATEV-format Buchungsstapel (EXTF v13) from booking rows, validated before output. Write it as a Windows-1252 file for import into DATEV Rechnungswesen or DATEV Unternehmen online, or return the CSV text.
Instructions
Create a DATEV-Format Buchungsstapel (EXTF, Formatversion 13) from booking rows, ready for import into DATEV Rechnungswesen or DATEV Unternehmen online. The result is checked with the validator before it's returned. With outputPath the file is written as Windows-1252, the encoding DATEV expects; without it the CSV text is returned. The tool formats bookings, it doesn't choose accounts or tax keys: take those from the user or their tax advisor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the messages: de (default) or en. | de |
| rows | Yes | ||
| header | Yes | ||
| outputPath | No | Where to write the file, e.g. EXTF_Buchungsstapel.csv. Existing files are overwritten. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | ||
| path | No | ||
| rows | Yes | ||
| report | Yes | ||
| changed | Yes | Belegfeld 1 values the writer had to clean, and texts with characters Windows-1252 can't hold |