datev 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 956e90c7d3a49baf12d3337b605381daa3e20d87
4
- data.tar.gz: 172c44ef62e75de78b96dec23b6db196e466ba2e
3
+ metadata.gz: 9c576ae187ffd2d69ce440f9ea3057cffddf1490
4
+ data.tar.gz: ff02884799a0eaa8dd6f677c1bdd8ad4d3332d06
5
5
  SHA512:
6
- metadata.gz: cdcda8fd8dc40c21fe94ef4430eb29a962d0cfb6f8d78ac63f91e2ae7ca935a003be7b820d6fa7602601a23dd59efa97cb37a9e13fc7adcfc268c0e7579d2d2a
7
- data.tar.gz: 90c7657ff7d11bce0598678d6f41e4d12bdb99a2ff216c76c43e5fdbba482bd705fb54d230371fee262f7adb0854e09e6cdca9717854587e4ca73e696bff4997
6
+ metadata.gz: 123dc9c5271862ab643dddb0b4b5b3c4c30a8bca77b788865bceda05f19ededaff7b0d5e31ca3d661bc022b717b56d0e7a29a2ab42670210e0e30b33e35f2831
7
+ data.tar.gz: eb956f0dccf38e08f6b204e0bd2c7f313d8c112a06b66bcf621b6e9a7d9c03080bc6622a97d8d7ee8bdc0053a863173411713b90e30d28befc374ec4a6f56e7e
data/README.md CHANGED
@@ -59,6 +59,8 @@ export << {
59
59
  export.to_file('EXTF_Buchungsstapel.csv')
60
60
  ```
61
61
 
62
+ Result: [CSV file](examples/EXTF_Buchungsstapel.csv)
63
+
62
64
  ## Development
63
65
 
64
66
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -0,0 +1,4 @@
1
+ EXTF;510;21;Buchungsstapel;007;20160623152500000;;XY;Chief Accounting Officer;;0000123;00456;20160101;4;20160601;20160630;Beispiel-Buchungen;;1;;;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 � Inhalt 1;Zusatzinformation � Art 1;Zusatzinformation � Inhalt 2;Zusatzinformation � Art 2;Zusatzinformation � Inhalt 3;Zusatzinformation � Art 3;Zusatzinformation � Inhalt 4;Zusatzinformation � Art 4;Zusatzinformation � Inhalt 5;Zusatzinformation � Art 5;Zusatzinformation � Inhalt 6;Zusatzinformation � Art 6;Zusatzinformation � Inhalt 7;Zusatzinformation � Art 7;Zusatzinformation � Inhalt 8;Zusatzinformation � Art 8;Zusatzinformation � Inhalt 9;Zusatzinformation � Art 9;Zusatzinformation � Inhalt 10;Zusatzinformation � Art 10;Zusatzinformation � Inhalt 11;Zusatzinformation � Art 11;Zusatzinformation � Inhalt 12;Zusatzinformation � Art 12;Zusatzinformation � Inhalt 13;Zusatzinformation � Art 13;Zusatzinformation � Inhalt 14;Zusatzinformation � Art 14;Zusatzinformation � Inhalt 15;Zusatzinformation � Art 15;Zusatzinformation � Inhalt 16;Zusatzinformation � Art 16;Zusatzinformation � Inhalt 17;Zusatzinformation � Art 17;Zusatzinformation � Inhalt 18;Zusatzinformation � Art 18;Zusatzinformation � Inhalt 19;Zusatzinformation � Art 19;Zusatzinformation � Inhalt 20;Zusatzinformation � Art 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.
3
+ 24,95;H;;;;;000001200;000004940;8;2106;;;;Fachbuch: Controlling f�r Dummies;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4
+ 5950,00;S;;;;;000010000;000008400;;2206;RE201606-135;;;Honorar FiBu-Seminar;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -75,7 +75,7 @@ module Datev
75
75
  when :integer
76
76
  value.to_s.rjust(limit, '0')
77
77
  when :decimal
78
- ("%#{precision - scale - 1}.#{scale}f" % value).sub('.',',')
78
+ ("%.#{scale}f" % value).sub('.',',')
79
79
  when :boolean
80
80
  value ? 1 : 0
81
81
  when :date
@@ -1,3 +1,3 @@
1
1
  module Datev
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Ledermann
@@ -99,6 +99,7 @@ files:
99
99
  - bin/console
100
100
  - bin/setup
101
101
  - datev.gemspec
102
+ - examples/EXTF_Buchungsstapel.csv
102
103
  - lib/datev.rb
103
104
  - lib/datev/base.rb
104
105
  - lib/datev/booking.rb