ydim 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +6 -0
- data/lib/pdfinvoice/config.rb +0 -1
- data/lib/pdfinvoice/invoice.rb +1 -1
- data/lib/ydim/invoice.rb +1 -3
- data/lib/ydim/mail.rb +1 -0
- data/lib/ydim/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46e6d36c539ca68440088c2792c44d9b9915b27a
|
4
|
+
data.tar.gz: 2c8e5d48ea0acb9ee159f7e38929876dcb565b7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1099d4d4da58ca3c7e9cdf86795f31757f925ea833e56b45005b792250657a8073d9f5bb3b2fef187012c98677c857f7c01ee2c2b486da4a50220fc8619ffb9c
|
7
|
+
data.tar.gz: d29c220a2628613cf5e4ac9c14ba572fffc4addc22f3640eecf1f138f05f77ebb1815db2ae7213d8e6e5843253eb5ad7b94ef19eb19a4622c28be661e5b8b887
|
data/History.txt
CHANGED
data/lib/pdfinvoice/config.rb
CHANGED
data/lib/pdfinvoice/invoice.rb
CHANGED
@@ -116,7 +116,7 @@ module PdfInvoice
|
|
116
116
|
}
|
117
117
|
table.data = @items.collect { |line|
|
118
118
|
item_total = line.at(3).to_f * line.at(4).to_f
|
119
|
-
vat += line[5] || @config.
|
119
|
+
vat += line[5] || (@config.vat_rate.to_f * item_total / 100)
|
120
120
|
total += item_total
|
121
121
|
date = line.at(0).strftime(@config.formats['date'])
|
122
122
|
cw = pdf.text_width(date) * PDF::SimpleTable::WIDTH_FACTOR
|
data/lib/ydim/invoice.rb
CHANGED
@@ -106,9 +106,7 @@ module YDIM
|
|
106
106
|
config.formats['quantity'] = "%1.#{@precision}f"
|
107
107
|
config.formats['total'] = "#{@currency} %1.2f"
|
108
108
|
if(item = @items[0])
|
109
|
-
|
110
|
-
config.texts['tax'] = "MwSt 7.6%"
|
111
|
-
end
|
109
|
+
config.texts['tax'] = sprintf("MwSt %0.1f%%", item.vat_rate)
|
112
110
|
end
|
113
111
|
invoice = PdfInvoice::Invoice.new(config)
|
114
112
|
invoice.date = @date
|
data/lib/ydim/mail.rb
CHANGED
data/lib/ydim/version.rb
CHANGED