datev 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/push.yml +2 -2
- data/LICENSE.txt +1 -1
- data/datev.gemspec +2 -1
- data/examples/EXTF_Buchungsstapel.csv +4 -4
- data/examples/EXTF_Kontenbeschriftungen.csv +1 -1
- data/examples/EXTF_Stammdaten.csv +5 -5
- data/lib/datev/base/booking.rb +39 -0
- data/lib/datev/base/header/booking_header.rb +1 -1
- data/lib/datev/base/header.rb +1 -1
- data/lib/datev/field/integer_field.rb +5 -1
- data/lib/datev/field/string_field.rb +5 -0
- data/lib/datev/version.rb +1 -1
- metadata +18 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb7dd7202076f95eec70d95a6335f45e7facd2a88f995909ddb5498410e2f937
|
|
4
|
+
data.tar.gz: 8c0b0d93f5604654a8f311277038e966095c3ef141c86ddc54c3dfab32e795d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93f3080155876d67d9c75a9db8e2b0e16bcd1e25d5c0397da4c8f94063fe0de343f7bd94c1f7dbe7a9e0e04963c216a7c983e83d7746b42fa1e6f4e96fa86829
|
|
7
|
+
data.tar.gz: f8dc3026409f6da35f6ca82b23f1ec556e183bf5cdf9ec07a38a8aab02ebf37fbd9272c5ab8a6aa93a0d64dccc4e8f27226df084bf06a2d2aaf4e6bd5be0a7d7
|
data/.github/workflows/push.yml
CHANGED
|
@@ -7,13 +7,13 @@ jobs:
|
|
|
7
7
|
strategy:
|
|
8
8
|
fail-fast: false
|
|
9
9
|
matrix:
|
|
10
|
-
ruby: [
|
|
10
|
+
ruby: ["3.2", "3.3", "3.4"]
|
|
11
11
|
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
name: Test against Ruby ${{ matrix.ruby }}
|
|
14
14
|
|
|
15
15
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
16
|
+
- uses: actions/checkout@v5
|
|
17
17
|
|
|
18
18
|
- name: Set up Ruby
|
|
19
19
|
uses: ruby/setup-ruby@v1
|
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2016-
|
|
3
|
+
Copyright (c) 2016-2025 Georg Ledermann
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/datev.gemspec
CHANGED
|
@@ -18,9 +18,10 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.bindir = "exe"
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
20
20
|
spec.require_paths = ["lib"]
|
|
21
|
-
spec.required_ruby_version = '>= 2
|
|
21
|
+
spec.required_ruby_version = '>= 3.2'
|
|
22
22
|
|
|
23
23
|
spec.add_development_dependency "bundler"
|
|
24
|
+
spec.add_development_dependency "csv"
|
|
24
25
|
spec.add_development_dependency "rake"
|
|
25
26
|
spec.add_development_dependency "rspec"
|
|
26
27
|
spec.add_development_dependency 'simplecov'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"EXTF";700;21;"Buchungsstapel";
|
|
2
|
-
Umsatz (ohne Soll/Haben-Kz);Soll/Haben-Kennzeichen;WKZ Umsatz;Kurs;Basisumsatz;WKZ Basisumsatz;Konto;Gegenkonto (ohne BU-Schl�ssel);BU-Schl�ssel;Belegdatum;Belegfeld 1;Belegfeld 2;Skonto;Buchungstext;Postensperre;Diverse Adressnummer;Gesch�ftspartnerbank;Sachverhalt;Zinssperre;Beleglink;Beleginfo � Art 1;Beleginfo � Inhalt 1;Beleginfo � Art 2;Beleginfo � Inhalt 2;Beleginfo � Art 3;Beleginfo � Inhalt 3;Beleginfo � Art 4;Beleginfo � Inhalt 4;Beleginfo � Art 5;Beleginfo � Inhalt 5;Beleginfo � Art 6;Beleginfo � Inhalt 6;Beleginfo � Art 7;Beleginfo � Inhalt 7;Beleginfo � Art 8;Beleginfo � Inhalt 8;KOST1 � Kostenstelle;KOST2 � Kostenstelle;Kost Menge;EU-Land u. USt-IdNr.;EU-Steuersatz;Abw. Versteuerungsart;Sachverhalt L+L;Funktionserg�nzung L+L;BU 49 Hauptfunktionstyp;BU 49 Hauptfunktionsnummer;BU 49 Funktionserg�nzung;Zusatzinformation � Art 1;Zusatzinformation � Inhalt 1;Zusatzinformation � Art 2;Zusatzinformation � Inhalt 2;Zusatzinformation � Art 3;Zusatzinformation � Inhalt 3;Zusatzinformation � Art 4;Zusatzinformation � Inhalt 4;Zusatzinformation � Art 5;Zusatzinformation � Inhalt 5;Zusatzinformation � Art 6;Zusatzinformation � Inhalt 6;Zusatzinformation � Art 7;Zusatzinformation � Inhalt 7;Zusatzinformation � Art 8;Zusatzinformation � Inhalt 8;Zusatzinformation � Art 9;Zusatzinformation � Inhalt 9;Zusatzinformation � Art 10;Zusatzinformation � Inhalt 10;Zusatzinformation � Art 11;Zusatzinformation � Inhalt 11;Zusatzinformation � Art 12;Zusatzinformation � Inhalt 12;Zusatzinformation � Art 13;Zusatzinformation � Inhalt 13;Zusatzinformation � Art 14;Zusatzinformation � Inhalt 14;Zusatzinformation � Art 15;Zusatzinformation � Inhalt 15;Zusatzinformation � Art 16;Zusatzinformation � Inhalt 16;Zusatzinformation � Art 17;Zusatzinformation � Inhalt 17;Zusatzinformation � Art 18;Zusatzinformation � Inhalt 18;Zusatzinformation � Art 19;Zusatzinformation � Inhalt 19;Zusatzinformation � Art 20;Zusatzinformation � Inhalt 20;St�ck;Gewicht;Zahlweise;Forderungsart;Veranlagungsjahr;Zugeordnete F�lligkeit;Skontotyp;Auftragsnummer;Buchungstyp;USt-Schl�ssel (Anzahlungen);EU-Mitgliedstaat (Anzahlungen);Sachverhalt L+L (Anzahlungen);EU-Steuersatz (Anzahlungen);Erl�skonto (Anzahlungen);Herkunft-Kz;Leerfeld;KOST-Datum;SEPA-Mandatsreferenz;Skontosperre;Gesellschaftername;Beteiligtennummer;Identifikationsnummer;Zeichnernummer;Postensperre bis;Bezeichnung;Kennzeichen;Festschreibung;Leistungsdatum;Datum Zuord.;F�lligkeit;Generalumkehr;Steuersatz;Land
|
|
3
|
-
24,95;"H"
|
|
4
|
-
5950,00;"S"
|
|
1
|
+
"EXTF";700;21;"Buchungsstapel";13;20180306102500000;;"XY";"Chief Accounting Officer";;1001;456;20180101;4;20180201;20180228;"Beispiel-Buchungen";;1;;0;"EUR";;;;;;;;;
|
|
2
|
+
Umsatz (ohne Soll/Haben-Kz);Soll/Haben-Kennzeichen;WKZ Umsatz;Kurs;Basisumsatz;WKZ Basisumsatz;Konto;Gegenkonto (ohne BU-Schl�ssel);BU-Schl�ssel;Belegdatum;Belegfeld 1;Belegfeld 2;Skonto;Buchungstext;Postensperre;Diverse Adressnummer;Gesch�ftspartnerbank;Sachverhalt;Zinssperre;Beleglink;Beleginfo � Art 1;Beleginfo � Inhalt 1;Beleginfo � Art 2;Beleginfo � Inhalt 2;Beleginfo � Art 3;Beleginfo � Inhalt 3;Beleginfo � Art 4;Beleginfo � Inhalt 4;Beleginfo � Art 5;Beleginfo � Inhalt 5;Beleginfo � Art 6;Beleginfo � Inhalt 6;Beleginfo � Art 7;Beleginfo � Inhalt 7;Beleginfo � Art 8;Beleginfo � Inhalt 8;KOST1 � Kostenstelle;KOST2 � Kostenstelle;Kost Menge;EU-Land u. USt-IdNr.;EU-Steuersatz;Abw. Versteuerungsart;Sachverhalt L+L;Funktionserg�nzung L+L;BU 49 Hauptfunktionstyp;BU 49 Hauptfunktionsnummer;BU 49 Funktionserg�nzung;Zusatzinformation � Art 1;Zusatzinformation � Inhalt 1;Zusatzinformation � Art 2;Zusatzinformation � Inhalt 2;Zusatzinformation � Art 3;Zusatzinformation � Inhalt 3;Zusatzinformation � Art 4;Zusatzinformation � Inhalt 4;Zusatzinformation � Art 5;Zusatzinformation � Inhalt 5;Zusatzinformation � Art 6;Zusatzinformation � Inhalt 6;Zusatzinformation � Art 7;Zusatzinformation � Inhalt 7;Zusatzinformation � Art 8;Zusatzinformation � Inhalt 8;Zusatzinformation � Art 9;Zusatzinformation � Inhalt 9;Zusatzinformation � Art 10;Zusatzinformation � Inhalt 10;Zusatzinformation � Art 11;Zusatzinformation � Inhalt 11;Zusatzinformation � Art 12;Zusatzinformation � Inhalt 12;Zusatzinformation � Art 13;Zusatzinformation � Inhalt 13;Zusatzinformation � Art 14;Zusatzinformation � Inhalt 14;Zusatzinformation � Art 15;Zusatzinformation � Inhalt 15;Zusatzinformation � Art 16;Zusatzinformation � Inhalt 16;Zusatzinformation � Art 17;Zusatzinformation � Inhalt 17;Zusatzinformation � Art 18;Zusatzinformation � Inhalt 18;Zusatzinformation � Art 19;Zusatzinformation � Inhalt 19;Zusatzinformation � Art 20;Zusatzinformation � Inhalt 20;St�ck;Gewicht;Zahlweise;Forderungsart;Veranlagungsjahr;Zugeordnete F�lligkeit;Skontotyp;Auftragsnummer;Buchungstyp;USt-Schl�ssel (Anzahlungen);EU-Mitgliedstaat (Anzahlungen);Sachverhalt L+L (Anzahlungen);EU-Steuersatz (Anzahlungen);Erl�skonto (Anzahlungen);Herkunft-Kz;Leerfeld;KOST-Datum;SEPA-Mandatsreferenz;Skontosperre;Gesellschaftername;Beteiligtennummer;Identifikationsnummer;Zeichnernummer;Postensperre bis;Bezeichnung;Kennzeichen;Festschreibung;Leistungsdatum;Datum Zuord.;F�lligkeit;Generalumkehr;Steuersatz;Land;Abrechnungsreferent;BVV-Position;EU-Mitgliedstaat u. UStID (Ursprung);EU-Steuersatz (Ursprung);Abw. Skontokonto
|
|
3
|
+
24,95;"H";;;;;1200;4940;"8";2102;;;;"Fachbuch: Controlling f�r Dummies";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
4
|
+
5950,00;"S";;;;;10000;8400;;2202;"RE201802-135";;;"Honorar FiBu-Seminar";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"EXTF";700;20;"Kontenbeschriftungen";2;20180223152500000;;"XY";"Chief Accounting Officer"
|
|
1
|
+
"EXTF";700;20;"Kontenbeschriftungen";2;20180223152500000;;"XY";"Chief Accounting Officer";;1001;456;20180101;4;;;"Beispiel-Konten";;;;;;;;;;;;;;
|
|
2
2
|
Konto;Kontenbeschriftung;Sprach-ID
|
|
3
3
|
400;"Betriebsausstattung";"de-DE"
|
|
4
4
|
1000;"Kasse";"de-DE"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"EXTF";700;16;"Debitoren/Kreditoren";5;20180306102500000;;"XY";"Chief Accounting Officer"
|
|
1
|
+
"EXTF";700;16;"Debitoren/Kreditoren";5;20180306102500000;;"XY";"Chief Accounting Officer";;1001;456;20180101;4;;;"Kunden und Lieferanten";;;;;;;;;;;;;;
|
|
2
2
|
Konto;Name (Adressatentyp Unternehmen);Unternehmensgegenstand;Name (Adressatentyp nat�rl. Person);Vorname (Adressatentyp nat�rl. Person);Name (Adressatentyp keine Angabe);Adressatentyp;Kurzbezeichnung;EU-Land;EU-USt-IdNr.;Anrede;Titel/Akad. Grad;Adelstitel;Namensvorsatz;Adressart;Stra�e;Postfach;Postleitzahl;Ort;Land;Versandzusatz;Adresszusatz;Abweichende Anrede;Abw. Zustellbezeichnung 1;Abw. Zustellbezeichnung 2;Kennz. Korrespondenzadresse;Adresse G�ltig von;Adresse G�ltig bis;Telefon;Bemerkung (Telefon);Telefon Gesch�ftsleitung;Bemerkung (Telefon GL);E-Mail;Bemerkung (E-Mail);Internet;Bemerkung (Internet);Fax;Bemerkung (Fax);Sonstige;Bemerkung (Sonstige);Bankleitzahl 1;Bankbezeichnung 1;Bankkonto-Nummer 1;L�nderkennzeichen 1;IBAN 1;Leerfeld 1;SWIFT-Code 1;Abw. Kontoinhaber 1;Kennz. Haupt-Bankverb. 1;Bankverb. 1 G�ltig von;Bankverb. 1 G�ltig bis;Bankleitzahl 2;Bankbezeichnung 2;Bankkonto-Nummer 2;L�nderkennzeichen 2;IBAN 2;Leerfeld 2;SWIFT-Code 2;Abw. Kontoinhaber 2;Kennz. Haupt-Bankverb. 2;Bankverb. 2 G�ltig von;Bankverb. 2 G�ltig bis;Bankleitzahl 3;Bankbezeichnung 3;Bankkonto-Nummer 3;L�nderkennzeichen 3;IBAN 3;Leerfeld 3;SWIFT-Code 3;Abw. Kontoinhaber 3;Kennz. Haupt-Bankverb. 3;Bankverb. 3 G�ltig von;Bankverb. 3 G�ltig bis;Bankleitzahl 4;Bankbezeichnung 4;Bankkonto-Nummer 4;L�nderkennzeichen 4;IBAN 4;Leerfeld 4;SWIFT-Code 4;Abw. Kontoinhaber 4;Kennz. Haupt-Bankverb. 4;Bankverb. 4 G�ltig von;Bankverb. 4 G�ltig bis;Bankleitzahl 5;Bankbezeichnung 5;Bankkonto-Nummer 5;L�nderkennzeichen 5;IBAN 5;Leerfeld 5;SWIFT-Code 5;Abw. Kontoinhaber 5;Kennz. Haupt-Bankverb. 5;Bankverb. 5 G�ltig von;Bankverb. 5 G�ltig bis;Leerfeld 11;Briefanrede;Gru�formel;Kundennummer;Steuernummer;Sprache;Ansprechpartner;Vertreter;Sachbearbeiter;Diverse-Konto;Ausgabeziel;W�hrungssteuerung;Kreditlimit (Debitor);Zahlungsbedingung;F�lligkeit in Tagen (Debitor);Skonto in Prozent (Debitor);Kreditoren-Ziel 1 (Tage);Kreditoren-Skonto 1 (%);Kreditoren-Ziel 2 (Tage);Kreditoren-Skonto 2 (%);Kreditoren-Ziel 3 Brutto (Tage);Kreditoren-Ziel 4 (Tage);Kreditoren-Skonto 4 (%);Kreditoren-Ziel 5 (Tage);Kreditoren-Skonto 5 (%);Mahnung;Kontoauszug;Mahntext;Mahntext 2;Mahntext 3;Kontoauszugstext;Mahnlimit Betrag;Mahnlimit %;Zinsberechnung;Mahnzinssatz 1;Mahnzinssatz 2;Mahnzinssatz 3;Lastschrift;Verfahren;Mandantenbank;Zahlungstr�ger;Indiv. Feld 1;Indiv. Feld 2;Indiv. Feld 3;Indiv. Feld 4;Indiv. Feld 5;Indiv. Feld 6;Indiv. Feld 7;Indiv. Feld 8;Indiv. Feld 9;Indiv. Feld 10;Indiv. Feld 11;Indiv. Feld 12;Indiv. Feld 13;Indiv. Feld 14;Indiv. Feld 15;Abweichende Anrede (Rechnungsadresse);Adressart (Rechnungsadresse);Stra�e (Rechnungsadresse);Postfach (Rechnungsadresse);Postleitzahl (Rechnungsadresse);Ort (Rechnungsadresse);Land (Rechnungsadresse);Versandzusatz (Rechnungsadresse);Adresszusatz (Rechnungsadresse);Abw. Zustellbezeichnung 1 (Rechnungsadresse);Abw. Zustellbezeichnung 2 (Rechnungsadresse);Adresse G�ltig von (Rechnungsadresse);Adresse G�ltig bis (Rechnungsadresse);Bankleitzahl 6;Bankbezeichnung 6;Bankkonto-Nummer 6;L�nderkennzeichen 6;IBAN 6;Leerfeld 6;SWIFT-Code 6;Abw. Kontoinhaber 6;Kennz. Haupt-Bankverb. 6;Bankverb. 6 G�ltig von;Bankverb. 6 G�ltig bis;Bankleitzahl 7;Bankbezeichnung 7;Bankkonto-Nummer 7;L�nderkennzeichen 7;IBAN 7;Leerfeld 7;SWIFT-Code 7;Abw. Kontoinhaber 7;Kennz. Haupt-Bankverb. 7;Bankverb. 7 G�ltig von;Bankverb. 7 G�ltig bis;Bankleitzahl 8;Bankbezeichnung 8;Bankkonto-Nummer 8;L�nderkennzeichen 8;IBAN 8;Leerfeld 8;SWIFT-Code 8;Abw. Kontoinhaber 8;Kennz. Haupt-Bankverb. 8;Bankverb. 8 G�ltig von;Bankverb. 8 G�ltig bis;Bankleitzahl 9;Bankbezeichnung 9;Bankkonto-Nummer 9;L�nderkennzeichen 9;IBAN 9;Leerfeld 9;SWIFT-Code 9;Abw. Kontoinhaber 9;Kennz. Haupt-Bankverb. 9;Bankverb. 9 G�ltig von;Bankverb. 9 G�ltig bis;Bankleitzahl 10;Bankbezeichnung 10;Bankkonto-Nummer 10;L�nderkennzeichen 10;IBAN 10;Leerfeld 10;SWIFT-Code 10;Abw. Kontoinhaber 10;Kennz. Haupt-Bankverb. 10;Bankverb. 10 G�ltig von;Bankverb. 10 G�ltig bis;Nummer Fremdsystem;Insolvent;SEPA-Mandatsreferenz 1;SEPA-Mandatsreferenz 2;SEPA-Mandatsreferenz 3;SEPA-Mandatsreferenz 4;SEPA-Mandatsreferenz 5;SEPA-Mandatsreferenz 6;SEPA-Mandatsreferenz 7;SEPA-Mandatsreferenz 8;SEPA-Mandatsreferenz 9;SEPA-Mandatsreferenz 10;Verkn�pftes OPOS-Konto;Mahnsperre bis;Lastschriftsperre bis;Zahlungssperre bis;Geb�hrenberechnung;Mahngeb�hr 1;Mahngeb�hr 2;Mahngeb�hr 3;Pauschalberechnung;Verzugspauschale 1;Verzugspauschale 2;Verzugspauschale 3;Alternativer Suchname;Status;Anschrift manuell ge�ndert (Korrespondenzadresse);Anschrift individuell (Korrespondenzadresse);Anschrift manuell ge�ndert (Rechnungsadresse);Anschrift individuell (Rechnungsadresse);Fristberechnung bei Debitor;Mahnfrist 1;Mahnfrist 2;Mahnfrist 3;Letzte Frist
|
|
3
|
-
10000
|
|
4
|
-
70001;"Meyer GmbH"
|
|
5
|
-
70002;"Schulze GmbH"
|
|
6
|
-
70003;"Scary Kitten AG"
|
|
3
|
+
10000;;;"Mustermann";"Sabine";;"1";;;;"Frau";"Dr.";;;"STR";"Am Haagelspf�dchen 14";;"50999";"K�ln";"DE";;;;;;;;;"0221/1234567";;;;"sabine@mustermann.de";;"www.mustermann.de";;"0221/1234568";;;;;;;;"DE12500105170648489890";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"Sehr geehrte Frau Dr. Mustermann";;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
4
|
+
70001;"Meyer GmbH";;;;;"2";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
5
|
+
70002;"Schulze GmbH";;;;;"2";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
6
|
+
70003;"Scary Kitten AG";;;;;"2";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
data/lib/datev/base/booking.rb
CHANGED
|
@@ -365,5 +365,44 @@ module Datev
|
|
|
365
365
|
# 120
|
|
366
366
|
field 'Land', :string, limit: 2
|
|
367
367
|
# Beispiel: DE für Deutschland
|
|
368
|
+
|
|
369
|
+
# 121
|
|
370
|
+
field 'Abrechnungsreferent', :string, limit: 50
|
|
371
|
+
# Die Abrechnungsreferenz stellt eine Klammer über alle Transaktionen
|
|
372
|
+
# des Zahlungsdienstleisters und die dazu gehörige Auszahlung dar.
|
|
373
|
+
# Sie wird über den Zahlungsdatenservice bereitgestellt und bei der
|
|
374
|
+
# Erzeugung von Buchungsvorschläge berücksichtigt.
|
|
375
|
+
|
|
376
|
+
# 122
|
|
377
|
+
field 'BVV-Position', :integer, limit: 1
|
|
378
|
+
# Betriebsvermögensvergleich
|
|
379
|
+
# 1 Kapitalanpassung
|
|
380
|
+
# 2 Entnahme / Ausschüttung lfd. WJ
|
|
381
|
+
# 3 Einlage / Kapitalzuführung lfd. WJ
|
|
382
|
+
# 4 Übertragung § 6b Rücklage
|
|
383
|
+
# 5 Umbuchung (keine Zuordnung)
|
|
384
|
+
|
|
385
|
+
# 123
|
|
386
|
+
field 'EU-Mitgliedstaat u. UStID (Ursprung)', :string, limit: 15
|
|
387
|
+
# Die USt-IdNr. besteht aus
|
|
388
|
+
# - 2-stelligen Länderkürzel (siehe Dok.-Nr. 1080169)
|
|
389
|
+
# Ausnahme Griechenland: Das Länderkürzel lautet EL)
|
|
390
|
+
# - 13-stelliger USt-IdNr.
|
|
391
|
+
# - Beispiel: DE133546770. Die USt-IdNr kann auch Buchstaben haben, z.B.: bei Österreich
|
|
392
|
+
# Detaillierte Informationen zur Erfassung von EU-Informationen im Buchungssatz: Dok.-Nr: 9211462
|
|
393
|
+
|
|
394
|
+
# 124
|
|
395
|
+
field 'EU-Steuersatz (Ursprung)', :decimal, precision: 4, scale: 2
|
|
396
|
+
# Nur für entsprechende EU-Buchungen:
|
|
397
|
+
# Der im EU-Ursprungsland gültige Steuersatz.
|
|
398
|
+
# Beispiel: 12,12
|
|
399
|
+
|
|
400
|
+
# 125
|
|
401
|
+
field 'Abw. Skontokonto', :integer, limit: 8
|
|
402
|
+
# Zulässig sind hier, bei Zahlungsbuchungen mit Skontoabzug, Konten mit dem Kontenzweck „sonstige betriebliche Aufwendungen“.
|
|
403
|
+
# Eine Eingabe in diesem Feld bedeutet, dass der Skontobetrag auf dieses Aufwandskonto gebucht wird.
|
|
404
|
+
# Wenn in der Importdatei keine Angaben zum Skontokonto enthalten sind, wird der Skontobetrag auf das entsprechende Skontosammelkonto gebucht.
|
|
405
|
+
|
|
406
|
+
|
|
368
407
|
end
|
|
369
408
|
end
|
data/lib/datev/base/header.rb
CHANGED
|
@@ -7,7 +7,7 @@ module Datev
|
|
|
7
7
|
|
|
8
8
|
# 2
|
|
9
9
|
field 'Versionsnummer', :integer, limit: 3
|
|
10
|
-
# entspricht der zugrundeliegenden Versionsnummer des
|
|
10
|
+
# entspricht der zugrundeliegenden Versionsnummer des Schnittstellen-Entwicklungsleitfadens
|
|
11
11
|
|
|
12
12
|
# 3
|
|
13
13
|
field 'Datenkategorie', :integer, limit: 2
|
|
@@ -24,7 +24,11 @@ module Datev
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def output(value, _context=nil)
|
|
27
|
-
|
|
27
|
+
# Return empty string for nil values (required for DATEV reserved fields)
|
|
28
|
+
return '' if value.nil?
|
|
29
|
+
|
|
30
|
+
# Return bare integer value without quotes (DATEV CSV format requirement)
|
|
31
|
+
value.to_s
|
|
28
32
|
end
|
|
29
33
|
end
|
|
30
34
|
end
|
|
@@ -19,6 +19,11 @@ module Datev
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def output(value, _context=nil)
|
|
22
|
+
# If value is nil or empty, return empty string (no quotes)
|
|
23
|
+
# This is required for DATEV's reserved fields which MUST be completely empty
|
|
24
|
+
return '' if value.nil? || (value.respond_to?(:empty?) && value.empty?)
|
|
25
|
+
|
|
26
|
+
# Original behavior for non-empty values
|
|
22
27
|
value = value.slice(0, limit || 255) if value
|
|
23
28
|
|
|
24
29
|
quote(value)
|
data/lib/datev/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: datev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Georg Ledermann
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -24,6 +23,20 @@ dependencies:
|
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: csv
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
type: :development
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
27
40
|
- !ruby/object:Gem::Dependency
|
|
28
41
|
name: rake
|
|
29
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -127,7 +140,6 @@ homepage: https://github.com/ledermann/datev
|
|
|
127
140
|
licenses:
|
|
128
141
|
- MIT
|
|
129
142
|
metadata: {}
|
|
130
|
-
post_install_message:
|
|
131
143
|
rdoc_options: []
|
|
132
144
|
require_paths:
|
|
133
145
|
- lib
|
|
@@ -135,15 +147,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
135
147
|
requirements:
|
|
136
148
|
- - ">="
|
|
137
149
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: '2
|
|
150
|
+
version: '3.2'
|
|
139
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
152
|
requirements:
|
|
141
153
|
- - ">="
|
|
142
154
|
- !ruby/object:Gem::Version
|
|
143
155
|
version: '0'
|
|
144
156
|
requirements: []
|
|
145
|
-
rubygems_version: 3.2
|
|
146
|
-
signing_key:
|
|
157
|
+
rubygems_version: 3.7.2
|
|
147
158
|
specification_version: 4
|
|
148
159
|
summary: Export booking data in DATEV format
|
|
149
160
|
test_files: []
|