vesr 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/esr_record.rb +3 -1
- data/lib/vesr/version.rb +1 -1
- metadata +4 -4
data/app/models/esr_record.rb
CHANGED
@@ -163,14 +163,16 @@ class EsrRecord < ActiveRecord::Base
|
|
163
163
|
def create_esr_booking
|
164
164
|
if invoice
|
165
165
|
esr_booking = invoice.bookings.build
|
166
|
+
debit_account = invoice.balance_account
|
166
167
|
else
|
167
168
|
esr_booking = Booking.new
|
169
|
+
debit_account = Invoice.direct_account
|
168
170
|
end
|
169
171
|
|
170
172
|
esr_booking.update_attributes(
|
171
173
|
:amount => amount,
|
172
174
|
:credit_account => vesr_account,
|
173
|
-
:debit_account =>
|
175
|
+
:debit_account => debit_account,
|
174
176
|
:value_date => value_date,
|
175
177
|
:title => "VESR Zahlung",
|
176
178
|
:comments => remarks)
|
data/lib/vesr/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vesr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 0.11.
|
9
|
+
- 1
|
10
|
+
version: 0.11.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Simecek
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-03-
|
19
|
+
date: 2012-03-05 00:00:00 Z
|
20
20
|
dependencies: []
|
21
21
|
|
22
22
|
description: VESR provides support for ESR number calculations and gives ready to use Rails components.
|