vesr 0.12.3 → 0.12.4

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.
@@ -6,14 +6,14 @@ class EsrFile < ActiveRecord::Base
6
6
 
7
7
  def to_s(format = :default)
8
8
  case format
9
- when :short
10
- "#{updated_at.strftime('%d.%m.%Y')}: #{esr_records.count} Buchungen"
11
- else
9
+ when :long
12
10
  s = ''
13
11
  esr_records.each {|record|
14
12
  s += record.to_s + "\n"
15
13
  }
16
14
  s
15
+ else
16
+ "#{updated_at.strftime('%d.%m.%Y')}: #{file_identifier}"
17
17
  end
18
18
  end
19
19
 
@@ -114,6 +114,12 @@ class EsrRecord < ActiveRecord::Base
114
114
  return
115
115
  end
116
116
 
117
+ # Not fully paid
118
+ if (self.state == 'underpaid')
119
+ self.remarks += ", Teilzahlung"
120
+ return
121
+ end
122
+
117
123
  # Simply mark bad amount otherwise
118
124
  self.remarks += ", falscher Betrag"
119
125
  end
data/lib/vesr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vesr
2
- VERSION = "0.12.3"
2
+ VERSION = "0.12.4"
3
3
  end
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: 41
4
+ hash: 39
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 12
9
- - 3
10
- version: 0.12.3
9
+ - 4
10
+ version: 0.12.4
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-05-03 00:00:00 Z
19
+ date: 2012-05-24 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.