secretariat 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/secretariat/invoice.rb +8 -2
- data/lib/secretariat/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24767d1bf53e67440e5b012f83b19e45119e937fde0085d8197ff21dcf0c65e0
|
4
|
+
data.tar.gz: c0cc0b22c3f8fa4612e08a6bab5af89f0fefd30a06c899976264305991d08846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acaff7a169b01482c53491609cd0b91add3d528b74e84659369d6283463eae3787020d6a91153775778decf393353f2c8a88935e046eb8a3ab1bb151fd5dd31b
|
7
|
+
data.tar.gz: c213647657402309c566461b15d11dc1a1cc5d72e8d158ab79fc0f51b2bde4eb6245c86e68cd976bc707f372f9d8ce803ef076453a7cfd222ae95f60e7257fac
|
data/lib/secretariat/invoice.rb
CHANGED
@@ -42,6 +42,7 @@ module Secretariat
|
|
42
42
|
:due_amount,
|
43
43
|
:paid_amount,
|
44
44
|
:tax_calculation_method,
|
45
|
+
:notes,
|
45
46
|
:attachments,
|
46
47
|
keyword_init: true
|
47
48
|
) do
|
@@ -84,7 +85,7 @@ module Secretariat
|
|
84
85
|
taxes[line_item.tax_percent].base_amount += BigDecimal(line_item.net_amount) * line_item.quantity
|
85
86
|
end
|
86
87
|
end
|
87
|
-
|
88
|
+
|
88
89
|
if tax_calculation_method == :VERTICAL
|
89
90
|
taxes.values.map do |tax|
|
90
91
|
tax.tax_amount = (tax.base_amount * tax.tax_percent / 100).round(2)
|
@@ -200,8 +201,13 @@ module Secretariat
|
|
200
201
|
xml.text(issue_date.strftime("%Y%m%d"))
|
201
202
|
end
|
202
203
|
end
|
203
|
-
|
204
|
+
Array(self.notes).each do |note|
|
205
|
+
xml['ram'].IncludedNote do
|
206
|
+
xml['ram'].Content note
|
207
|
+
end
|
208
|
+
end
|
204
209
|
end
|
210
|
+
|
205
211
|
transaction = by_version(version, 'SpecifiedSupplyChainTradeTransaction', 'SupplyChainTradeTransaction')
|
206
212
|
xml['rsm'].send(transaction) do
|
207
213
|
|
data/lib/secretariat/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secretariat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Krutisch
|
@@ -43,14 +43,14 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 3.6
|
46
|
+
version: '3.6'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 3.6
|
53
|
+
version: '3.6'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: minitest
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|