vesr 0.4.0 → 0.5.0
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.
- data/app/models/esr_record.rb +1 -1
- data/lib/vesr/prawn/esr_recipe.rb +11 -3
- data/lib/vesr/version.rb +1 -1
- metadata +4 -4
data/app/models/esr_record.rb
CHANGED
@@ -7,7 +7,7 @@ class EsrRecord < ActiveRecord::Base
|
|
7
7
|
scope :valid, where(:state => 'valid')
|
8
8
|
scope :missing, where(:state => 'missing')
|
9
9
|
scope :bad, where(:state => 'bad')
|
10
|
-
scope :invalid, where(:state => '
|
10
|
+
scope :invalid, where(:state => 'invalid')
|
11
11
|
|
12
12
|
private
|
13
13
|
def parse_date(value)
|
@@ -6,7 +6,7 @@ module Prawn
|
|
6
6
|
|
7
7
|
include ActionView::Helpers::TranslationHelper
|
8
8
|
|
9
|
-
def esr_recipe(invoice, esr_account, sender)
|
9
|
+
def esr_recipe(invoice, esr_account, sender, print_payment_for? = true)
|
10
10
|
# VESR form
|
11
11
|
# =========
|
12
12
|
bank = esr_account.bank
|
@@ -18,7 +18,11 @@ module Prawn
|
|
18
18
|
text bank.vcard.postal_code + " " + bank.vcard.locality
|
19
19
|
|
20
20
|
text " "
|
21
|
-
|
21
|
+
if print_payment_for?
|
22
|
+
text I18n::translate(:biller, :scope => "activerecord.attributes.invoice")
|
23
|
+
else
|
24
|
+
text " "
|
25
|
+
end
|
22
26
|
text " "
|
23
27
|
|
24
28
|
vcard = sender.vcard
|
@@ -64,7 +68,11 @@ module Prawn
|
|
64
68
|
text bank.vcard.postal_code + " " + bank.vcard.locality
|
65
69
|
|
66
70
|
text " "
|
67
|
-
|
71
|
+
if print_payment_for?
|
72
|
+
text I18n::translate(:biller, :scope => "activerecord.attributes.invoice")
|
73
|
+
else
|
74
|
+
text " "
|
75
|
+
end
|
68
76
|
text " "
|
69
77
|
|
70
78
|
vcard = sender.vcard
|
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: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 5
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.5.0
|
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: 2011-
|
19
|
+
date: 2011-11-08 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|