ruconomic 0.9.9 → 0.9.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: 7776054f005bb98b19444eaff7b8b0c8a8874477
4
- data.tar.gz: 0d9de84e8ba54a88aff2deca04a934604558b494
3
+ metadata.gz: 0c235ca841bd9bb5eb9ef10540da92c49fe38a1b
4
+ data.tar.gz: aba80a90157ac2b1bf6619badf5ec82ee3600003
5
5
  SHA512:
6
- metadata.gz: 7c9948789c91888522388a521821a4f87d6a1ecb68d8aa33bd2d4459f18db393275aee06429cd28a6f845ae1d85561a158bc622bd49ef8bde0f6cec325dbd9e0
7
- data.tar.gz: 91e028c86371b168c48d4ed4adbf462b938213083c6993ca5cee7ba09ab7870af88a1a7053dfa269ef61df7c93fe33388cd852903f004f9d0aff98160f14b59b
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
- raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
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') do |message|
611
- raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
612
- end
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.
@@ -1,3 +1,3 @@
1
1
  module Ruconomic
2
- VERSION = "0.9.9"
2
+ VERSION = "0.9.10"
3
3
  end
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.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-28 00:00:00.000000000 Z
11
+ date: 2017-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb