vesr 0.8.2 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.amount)
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.amount)
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.amount, invoice, esr_account.pc_id, esr_account.esr_id)
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
@@ -1,3 +1,3 @@
1
1
  module Vesr
2
- VERSION = "0.8.2"
2
+ VERSION = "0.9.0"
3
3
  end
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
- - 8
9
- - 2
10
- version: 0.8.2
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-03 00:00:00 Z
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.8.10
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: