ruconomic 0.9.9 → 0.9.10
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/CHANGELOG.md +13 -0
- data/lib/ruconomic/api/cash_book.rb +8 -3
- data/lib/ruconomic/api/current_invoice.rb +3 -4
- data/lib/ruconomic/version.rb +1 -1
- 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: 0c235ca841bd9bb5eb9ef10540da92c49fe38a1b
|
|
4
|
+
data.tar.gz: aba80a90157ac2b1bf6619badf5ec82ee3600003
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6fd8fdfba4165ac8c0775272ad75a83d816e3fee2c92a0241c3b612696b12939241f1ce64c3a7710bb6cbff7f0826684cc3938012d9e693fe9d82dc6c9ea9c5e
|
|
7
|
+
data.tar.gz: 283c3e9dbb3926e104c362e7d423f72d41df9dcf6ccd0c59a6e929975a9d1594cda2fa9f0d013c8c136f5e1c2883a029f29c26ce4a7d2869164f4a1cf9ac4d04
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# 0.9.10
|
|
4
|
+
|
|
5
|
+
- CurrentInvoice: get all
|
|
6
|
+
- CashBook: book
|
|
7
|
+
|
|
8
|
+
# 0.9.9
|
|
9
|
+
|
|
10
|
+
- CashBook: get next voucher number
|
|
11
|
+
- Debtor: create from data - add optional attributes
|
|
12
|
+
- CurrentInvoice: create from data
|
|
13
|
+
- CurrentInvoiceLine: create from data - add optional attributes
|
|
14
|
+
- Debtor: update from data
|
|
15
|
+
|
|
3
16
|
# 0.9.8
|
|
4
17
|
|
|
5
18
|
- Invoice: get all (olepalm)
|
|
@@ -169,13 +169,18 @@ module Ruconomic
|
|
|
169
169
|
|
|
170
170
|
# Books all entries in the cashbook.
|
|
171
171
|
#
|
|
172
|
-
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
|
|
173
172
|
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=CashBook_Book
|
|
174
173
|
# @return [Hash] The body content of the SOAP response.
|
|
175
|
-
def self.book
|
|
174
|
+
def self.book(handle)
|
|
176
175
|
response = invoke('CashBook_Book') do |message|
|
|
177
|
-
|
|
176
|
+
message.add_handle('cashBookHandle', handle)
|
|
178
177
|
end
|
|
178
|
+
|
|
179
|
+
response.to_hash.dig(
|
|
180
|
+
:cash_book_book_response,
|
|
181
|
+
:cash_book_book_result,
|
|
182
|
+
:number
|
|
183
|
+
)
|
|
179
184
|
end
|
|
180
185
|
|
|
181
186
|
# Books entries in the cashbook between fromDate and toDate.
|
|
@@ -603,13 +603,12 @@ module Ruconomic
|
|
|
603
603
|
|
|
604
604
|
# Returns handles for all current invoices.
|
|
605
605
|
#
|
|
606
|
-
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
|
|
607
606
|
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=CurrentInvoice_GetAll
|
|
608
607
|
# @return [Hash] The body content of the SOAP response.
|
|
609
608
|
def self.get_all
|
|
610
|
-
response = invoke('CurrentInvoice_GetAll')
|
|
611
|
-
|
|
612
|
-
|
|
609
|
+
response = invoke('CurrentInvoice_GetAll')
|
|
610
|
+
|
|
611
|
+
response.to_hash[:current_invoice_get_all_response][:current_invoice_get_all_result]
|
|
613
612
|
end
|
|
614
613
|
|
|
615
614
|
# Returns handles for the current invoices which have the given employee as OurReference.
|
data/lib/ruconomic/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruconomic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tonni Tølbøll Lund Aagesen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-03
|
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: curb
|