DATEV EXTF

v0.1.0
engineering.seamless/datev-extf Checked 2 days ago Published 2 months ago

Validate 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.

ParameterTypeDescription
contentstringThe file content as text, if there's no file. The encoding can't be checked this way.
langstringLanguage of the messages: de (default) or en.
pathstringPath 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.

ParameterTypeDescription
code *stringThe finding code.
langstringLanguage 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.

ParameterTypeDescription
header *object
rows *array
langstringLanguage of the messages: de (default) or en.
outputPathstringWhere 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.

ParameterTypeDescription
format *string