datev 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/README.md +35 -30
- data/datev.gemspec +1 -0
- data/lib/datev/export.rb +1 -1
- data/lib/datev/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c321a3bfeae671bbfdb6873b7b75bb34887f453
|
4
|
+
data.tar.gz: dbe77e04243cdb4afa3dbd9ee26bb2867b4cedf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfb8ba8f87cb539f9c9bc3ba446449752ade2c1295eba4baf4d183d210cf3f6c3648cc4f4c781e6e625a8ea0824eba39ca51a7120a99b4b4045379971894367d
|
7
|
+
data.tar.gz: f6511e6f062388127bc692fa0d3d4359d1bbe53c8e432c0caae018fa82a64978956966da96b1e19d1862469fa675d0280b39a908fd887014439192ea1c32f4cd
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
Ruby gem for exporting bookings to DATEV via CSV file
|
4
4
|
|
5
|
+
[![Build Status](https://travis-ci.org/ledermann/datev.svg?branch=master)](https://travis-ci.org/ledermann/datev)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/ledermann/datev/badges/gpa.svg)](https://codeclimate.com/github/ledermann/datev)
|
7
|
+
|
5
8
|
## Installation
|
6
9
|
|
7
10
|
Add this line to your application's Gemfile:
|
@@ -21,36 +24,38 @@ Or install it yourself as:
|
|
21
24
|
## Usage
|
22
25
|
|
23
26
|
```ruby
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
27
|
+
export = Datev::Export.new(
|
28
|
+
'Herkunft' => 'XY',
|
29
|
+
'Exportiert von' => 'Chief Accounting Officer',
|
30
|
+
'Berater' => 123,
|
31
|
+
'Mandant' => 456,
|
32
|
+
'WJ-Beginn' => Date.new(2016,1,1),
|
33
|
+
'Datum vom' => Date.new(2016,6,1),
|
34
|
+
'Datum bis' => Date.new(2016,6,30),
|
35
|
+
'Bezeichnung' => 'Beispiel-Buchungen'
|
36
|
+
) # For available hash keys see /lib/datev/header.rb
|
37
|
+
|
38
|
+
export << Datev::Booking.new(
|
39
|
+
'Belegdatum' => Date.new(2016,6,21),
|
40
|
+
'Buchungstext' => 'Fachbuch: Controlling für Dummies',
|
41
|
+
'Umsatz (ohne Soll/Haben-Kz)' => 24.95,
|
42
|
+
'Soll/Haben-Kennzeichen' => 'H',
|
43
|
+
'Konto' => 1200,
|
44
|
+
'Gegenkonto (ohne BU-Schlüssel)' => 4940,
|
45
|
+
'BU-Schlüssel' => '8'
|
46
|
+
) # For available hash keys see /lib/datev/booking.rb
|
47
|
+
|
48
|
+
export << Datev::Booking.new(
|
49
|
+
'Belegdatum' => Date.new(2016,6,22),
|
50
|
+
'Buchungstext' => 'Honorar FiBu-Seminar',
|
51
|
+
'Umsatz (ohne Soll/Haben-Kz)' => 5950.00,
|
52
|
+
'Soll/Haben-Kennzeichen' => 'S',
|
53
|
+
'Konto' => 10000,
|
54
|
+
'Gegenkonto (ohne BU-Schlüssel)' => 8400,
|
55
|
+
'Belegfeld 1' => 'RE201606-135'
|
56
|
+
)
|
57
|
+
|
58
|
+
export.to_file('EXTF_Buchungsstapel.csv')
|
54
59
|
```
|
55
60
|
|
56
61
|
## Development
|
data/datev.gemspec
CHANGED
@@ -18,6 +18,7 @@ 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.0.0'
|
21
22
|
|
22
23
|
spec.add_development_dependency "bundler"
|
23
24
|
spec.add_development_dependency "rake"
|
data/lib/datev/export.rb
CHANGED
data/lib/datev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Ledermann
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
requirements:
|
91
91
|
- - ">="
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 2.0.0
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - ">="
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.6.
|
101
|
+
rubygems_version: 2.6.6
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Export booking data in DATEV format
|