polish_invoicer 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52d3a43a6d0c5c147dbd4eeb8e8cb5049b963c69
4
- data.tar.gz: 856cc3a64bef075bcc9b81cea182799e8df3c3fc
3
+ metadata.gz: 65c0db3584924c4d4953d45583d64ed9aed851ab
4
+ data.tar.gz: fa3e921813ac9440e3a708fd24881746726d618a
5
5
  SHA512:
6
- metadata.gz: d243cb095fc4c73ba77c9fefc60db15ea018605927abcaa1e94845e03892bbf4f9de604556c2109a88254507ff9c4ed8861415756a7ff2d7b7fab491b12e076d
7
- data.tar.gz: e5323c89595f6b96f052eab0b0f4990e63b1ad63f48103012db9df4be8ccc71392fb1215359aafdc0b9fb102ae12c2ea517306db33cd43b7facdce41a2e4e681
6
+ metadata.gz: a6833d551f4ad8910be94518c2e4d6f87a9d4515048593e53e63c28123a566942a0b821a3bd3913a724b21bf69f03c7aa1ccdf14a614dbd94aaff33c3585060d
7
+ data.tar.gz: 935a722cb275fc23899a9122fca3be8d124f9d36e88f33cc11c03f92abcc9ba235bda7d39ae915f70d45bb3d90b6cf88daa14f59101c867a2faf85ee9c491fe7
@@ -1,3 +1,3 @@
1
1
  module PolishInvoicer
2
- VERSION = '0.0.11'.freeze
2
+ VERSION = '0.0.12'.freeze
3
3
  end
data/tpl/proforma-en.slim CHANGED
@@ -115,7 +115,7 @@ html
115
115
  em 1 service
116
116
  td.text-center = net_value
117
117
  td.text-center = net_value
118
- td.text-center = net_value
118
+ td.text-center = (reverse_charge == true ? net_value : gross_value)
119
119
  tr
120
120
  td colspan="#{pkwiu ? 3 : 2}"
121
121
  |  
@@ -124,7 +124,7 @@ html
124
124
  .small
125
125
  em Total
126
126
  td.text-center = net_value
127
- th.text-center = net_value
127
+ th.text-center = (reverse_charge == true ? net_value : gross_value)
128
128
 
129
129
  br
130
130
 
@@ -136,7 +136,7 @@ html
136
136
  .small
137
137
  em Total to pay:
138
138
  .col-xs-6
139
- b = "#{net_value} PLN"
139
+ b = "#{reverse_charge == true ? net_value : gross_value} PLN"
140
140
  .row
141
141
  .col-xs-6
142
142
  | Zapłacono:
@@ -144,7 +144,7 @@ html
144
144
  em Amount paid:
145
145
  .col-xs-6
146
146
  - if paid
147
- = "#{net_value} PLN"
147
+ = "#{reverse_charge == true ? net_value : gross_value} PLN"
148
148
  - else
149
149
  | 0,00 PLN
150
150
  .row
@@ -156,7 +156,7 @@ html
156
156
  - if paid
157
157
  | 0,00 PLN
158
158
  - else
159
- = "#{net_value} PLN"
159
+ = "#{reverse_charge == true ? net_value : gross_value} PLN"
160
160
 
161
161
  .col-xs-6
162
162
  - if comments.any?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polish_invoicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Macuk