vesr 0.8.2 → 0.9.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/lib/vesr/prawn/esr_recipe.rb +3 -3
- data/lib/vesr/version.rb +1 -1
- metadata +8 -7
|
@@ -59,7 +59,7 @@ module Prawn
|
|
|
59
59
|
draw_account_detail(account.bank, sender, print_payment_for)
|
|
60
60
|
end
|
|
61
61
|
draw_account(account)
|
|
62
|
-
draw_amount(invoice.
|
|
62
|
+
draw_amount(invoice.due_amount.currency_round)
|
|
63
63
|
|
|
64
64
|
bounding_box [cm2pt(0.2), bounds.top - cm2pt(5.2)], :width => cm2pt(5) do
|
|
65
65
|
text esr9_reference(invoice, account), :size => 7
|
|
@@ -73,7 +73,7 @@ module Prawn
|
|
|
73
73
|
bounding_box [cm2pt(6.4), cm2pt(9.6)], :width => cm2pt(5) do
|
|
74
74
|
draw_account_detail(account.bank, sender, print_payment_for)
|
|
75
75
|
draw_account(account)
|
|
76
|
-
draw_amount(invoice.
|
|
76
|
+
draw_amount(invoice.due_amount.currency_round)
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
font_size 10 do
|
|
@@ -114,7 +114,7 @@ module Prawn
|
|
|
114
114
|
private
|
|
115
115
|
# ESR helpers
|
|
116
116
|
def esr9(invoice, esr_account)
|
|
117
|
-
esr9_build(invoice.
|
|
117
|
+
esr9_build(invoice.due_amount.currency_round, invoice, esr_account.pc_id, esr_account.esr_id)
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
def esr9_reference(invoice, esr_account)
|
data/lib/vesr/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
name: vesr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
hash: 59
|
|
5
|
-
prerelease:
|
|
5
|
+
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
version: 0.
|
|
8
|
+
- 9
|
|
9
|
+
- 0
|
|
10
|
+
version: 0.9.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Roman Simecek
|
|
@@ -16,7 +16,8 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2012-01-
|
|
19
|
+
date: 2012-01-04 00:00:00 +01:00
|
|
20
|
+
default_executable:
|
|
20
21
|
dependencies: []
|
|
21
22
|
|
|
22
23
|
description: VESR provides support for ESR number calculations and gives ready to use Rails components.
|
|
@@ -52,6 +53,7 @@ files:
|
|
|
52
53
|
- lib/vesr/version.rb
|
|
53
54
|
- README.rdoc
|
|
54
55
|
- LICENSE.txt
|
|
56
|
+
has_rdoc: true
|
|
55
57
|
homepage: https://github.com/raskhadafi/vesr
|
|
56
58
|
licenses:
|
|
57
59
|
- MIT
|
|
@@ -81,10 +83,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
81
83
|
requirements: []
|
|
82
84
|
|
|
83
85
|
rubyforge_project:
|
|
84
|
-
rubygems_version: 1.
|
|
86
|
+
rubygems_version: 1.3.7
|
|
85
87
|
signing_key:
|
|
86
88
|
specification_version: 3
|
|
87
89
|
summary: VESR invoice support library.
|
|
88
90
|
test_files: []
|
|
89
91
|
|
|
90
|
-
has_rdoc:
|