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 +4 -4
- data/doc/invoice.rb +4 -0
- data/lib/polish_invoicer/version.rb +1 -1
- data/tpl/invoice-en.slim +3 -3
- data/tpl/proforma-en.slim +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99331e91cb089f78113b0e0a0b0d0daf1fa7cf85
|
4
|
+
data.tar.gz: 71a3cca89953f482b894a07cc929183ad35a090f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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')
|
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 = "#{
|
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
|
-
= "#{
|
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
|
-
= "#{
|
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 =
|
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 =
|
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 = "#{
|
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
|
-
= "#{
|
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
|
-
= "#{
|
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.
|
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-
|
11
|
+
date: 2017-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|