
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Ruby gem to export bookings and more to DATEV format as CSV file
Supported DATEV format: v7.0
Add this line to your application's Gemfile:
gem 'datev'
And then execute:
$ bundle
Or install it yourself as:
$ gem install datev
To export bookings, you need an BookingExport instance with an array of records. Example:
export = Datev::BookingExport.new(
'Herkunft' => 'XY',
'Exportiert von' => 'Chief Accounting Officer',
'Berater' => 1001,
'Mandant' => 456,
'WJ-Beginn' => Date.new(2018,1,1),
'Datum vom' => Date.new(2018,2,1),
'Datum bis' => Date.new(2018,2,28),
'Bezeichnung' => 'Beispiel-Buchungen'
) # For available hash keys see /lib/datev/base/header.rb
export << {
'Belegdatum' => Date.new(2018,2,21),
'Buchungstext' => 'Fachbuch: Controlling für Dummies',
'Umsatz (ohne Soll/Haben-Kz)' => 24.95,
'Soll/Haben-Kennzeichen' => 'H',
'Konto' => 1200,
'Gegenkonto (ohne BU-Schlüssel)' => 4940,
'BU-Schlüssel' => '8'
} # For available hash keys see /lib/datev/base/booking.rb
export << {
'Belegdatum' => Date.new(2018,2,22),
'Buchungstext' => 'Honorar FiBu-Seminar',
'Umsatz (ohne Soll/Haben-Kz)' => 5950.00,
'Soll/Haben-Kennzeichen' => 'S',
'Konto' => 10000,
'Gegenkonto (ohne BU-Schlüssel)' => 8400,
'Belegfeld 1' => 'RE201802-135'
}
export.to_file('EXTF_Buchungsstapel.csv')
Result: CSV file
All records are validated against the defined schema.
Beside bookings, some other exports are available, too:
AccountExport
("Kontenbeschriftungen")ContactExport
("Stammdaten")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.
Bug reports and pull requests are welcome on GitHub at https://github.com/ledermann/datev. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that datev demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.