vesr 0.6.2 → 0.6.3
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 +10 -4
- data/lib/vesr/version.rb +1 -1
- metadata +3 -3
@@ -33,12 +33,14 @@ module Prawn
|
|
33
33
|
|
34
34
|
def draw_account(account)
|
35
35
|
bounding_box [cm2pt(2.6), bounds.top - cm2pt(3.4)], :width => cm2pt(2.5) do
|
36
|
-
|
36
|
+
font_size 9 do
|
37
|
+
text account.pc_id
|
38
|
+
end
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
def draw_amount(amount)
|
41
|
-
font_size
|
43
|
+
font_size 10 do
|
42
44
|
bounding_box [0, bounds.top - cm2pt(4.2)], :width => cm2pt(3.6) do
|
43
45
|
text sprintf('%.0f', amount.floor), :align => :right, :character_spacing => 1
|
44
46
|
end
|
@@ -75,7 +77,9 @@ module Prawn
|
|
75
77
|
end
|
76
78
|
|
77
79
|
font_size 10 do
|
78
|
-
|
80
|
+
character_spacing 1.1 do
|
81
|
+
draw_text esr9_reference(invoice, account), :at => [cm2pt(12.7), cm2pt(6.8)]
|
82
|
+
end
|
79
83
|
end
|
80
84
|
|
81
85
|
bounding_box [cm2pt(12.7), cm2pt(5.5)], :width => cm2pt(7.5) do
|
@@ -91,7 +95,9 @@ module Prawn
|
|
91
95
|
end
|
92
96
|
|
93
97
|
font ocr_font, :size => 11 do
|
94
|
-
|
98
|
+
character_spacing 0.5 do
|
99
|
+
draw_text esr9(invoice, account), :at => [cm2pt(6.7), cm2pt(1.7)]
|
100
|
+
end
|
95
101
|
end
|
96
102
|
end
|
97
103
|
|
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: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 3
|
10
|
+
version: 0.6.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Simecek
|