polish_invoicer 0.0.9 → 0.0.10

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: 569ab755e7cec817e3ef4c6e8a226b972a29f38e
4
- data.tar.gz: 3c1b6dd4819964ca945fb7460fb7137fa01cdbd8
3
+ metadata.gz: 99331e91cb089f78113b0e0a0b0d0daf1fa7cf85
4
+ data.tar.gz: 71a3cca89953f482b894a07cc929183ad35a090f
5
5
  SHA512:
6
- metadata.gz: b64be0aaa1db32cec3c3fcab8eb286b3e020319c1afd9cd3bddea7dee54f2d76c92c411f2f257c94c1cc088b6897e571822b945baa6c4c0070c87f047530d847
7
- data.tar.gz: 45d0521f548c75ce5d5bf72709dcf21f99b5191e6f5132a6cf1d6851f1e002111561fd5e11a1d1feb61a9a8ad90a0c4250820eb7b6840b8aae8949dd39065c70
6
+ metadata.gz: 676c01dc481ea6e097ae22dcf1cad4852f1574d32a05833a5b82e207e4508658c9dc611cf0bb86a1e5fd7da06583376938f38cf9c91c753f582f2d3e7b7be503
7
+ data.tar.gz: 1b1db5b4e45145488107754ce54851cbdd600a8b93e3141e3bef44a9e0e10a8b5a45c5646d3b3fbc5b7aef3e7413d0d21b21203814d635dd3d8d192cba7efbf4
data/doc/invoice.rb CHANGED
@@ -15,6 +15,10 @@ invoice = PolishInvoicer::Invoice.new(
15
15
  item_name: 'Usługi programistyczne', # nazwa usługi
16
16
  price: 3500, # cena (domyślnie brutto)
17
17
  payment_date: Date.today + 14, # data płatności
18
+ # gross_price: false,
19
+ # proforma: true,
20
+ # paid: false,
21
+ # foreign_buyer: true
18
22
  )
19
23
  invoice.save_to_html('/tmp/invoice.html')
20
24
  invoice.save_to_pdf('/tmp/invoice.pdf')
@@ -1,3 +1,3 @@
1
1
  module PolishInvoicer
2
- VERSION = '0.0.9'.freeze
2
+ VERSION = '0.0.10'.freeze
3
3
  end
data/tpl/invoice-en.slim CHANGED
@@ -130,7 +130,7 @@ html
130
130
  .small
131
131
  em Total to pay:
132
132
  .col-xs-6
133
- b = "#{gross_value} PLN"
133
+ b = "#{net_value} PLN"
134
134
  .row
135
135
  .col-xs-6
136
136
  | Zapłacono:
@@ -138,7 +138,7 @@ html
138
138
  em Amount paid:
139
139
  .col-xs-6
140
140
  - if paid
141
- = "#{gross_value} PLN"
141
+ = "#{net_value} PLN"
142
142
  - else
143
143
  | 0,00 PLN
144
144
  .row
@@ -150,7 +150,7 @@ html
150
150
  - if paid
151
151
  | 0,00 PLN
152
152
  - else
153
- = "#{gross_value} PLN"
153
+ = "#{net_value} PLN"
154
154
 
155
155
  .col-xs-6
156
156
  - if comments.any?
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 = gross_value
118
+ td.text-center = net_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 = gross_value
127
+ th.text-center = net_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 = "#{gross_value} PLN"
139
+ b = "#{net_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
- = "#{gross_value} PLN"
147
+ = "#{net_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
- = "#{gross_value} PLN"
159
+ = "#{net_value} PLN"
160
160
 
161
161
  .col-xs-6
162
162
  - if comments.any?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polish_invoicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Macuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-12 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler