DATEV EXTF
v0.1.0Validate and write DATEV-Format (EXTF) files locally, with findings in German and English.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
validate_datev_extf Validate a DATEV EXTF file
Check a DATEV-Format (EXTF) CSV file, e.g. EXTF_Buchungsstapel.csv or a Debitoren/Kreditoren export, before importing it into DATEV or after DATEV rejected it. Returns every problem with line, field and a plain-language explanation in German or English: dot instead of comma in amounts, missing leading zeros in Belegdatum, BU-Schlüssel on automatic accounts, account length, encoding, header errors and more. Pass a file path (preferred, the encoding is checked too) or the file content.
| Parameter | Type | Description |
|---|---|---|
content | string | The file content as text, if there's no file. The encoding can't be checked this way. |
lang | string | Language of the messages: de (default) or en. |
path | string | Path to the CSV file on this machine. Relative paths resolve against the server's working directory. |
explain_datev_finding Explain a DATEV EXTF finding code
Explain what a validate_datev_extf finding code (e.g. amount-dot, bu-automatic, date-leading-zero) means and how to fix it. Placeholders like {value} or {max} stand for values from the specific finding.
| Parameter | Type | Description |
|---|---|---|
code * | string | The finding code. |
lang | string | Language of the messages: de (default) or en. |
write_buchungsstapel Write a DATEV Buchungsstapel
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.
| Parameter | Type | Description |
|---|---|---|
header * | object | |
rows * | array | |
lang | string | Language of the messages: de (default) or en. |
outputPath | string | Where to write the file, e.g. EXTF_Buchungsstapel.csv. Existing files are overwritten. |
list_datev_columns List DATEV EXTF columns
List the columns (line 2) of a DATEV Buchungsstapel (Formatversion 13, 125 columns) or Debitoren/Kreditoren file (254 columns), numbered by position. Use it to map export fields to DATEV columns or to find a column named in a finding.
| Parameter | Type | Description |
|---|---|---|
format * | string |