Module: Ruconomic::API::Entry

Extended by:
WebService
Defined in:
lib/ruconomic/api/entry.rb

Class Method Summary collapse

Class Method Details

.copy_voucherHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Creates a copy of all the entries that match the same voucher number and date as the selected entry. Parameters: cashBookEntryHandle: Handle for the cashbook entry that is base for the copy. newVoucherNumber: New voucher number if needed. If left out the voucher number from the entry copied is used. newVoucherDate: New voucher date if needed. If left out the date from the entry copied is used. newText: New text if needed. If left out the text from the entry copied is used. newCashBook: The CashBook to create the new entries on.



286
287
288
289
290
# File 'lib/ruconomic/api/entry.rb', line 286

def self.copy_voucher
  response = invoke('Entry_CopyVoucher') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.find_by_date_intervalHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns an array of handles for the entries within the given time interval. Parameters: fromDate: First day in interval. toDate: Last day in interval.



59
60
61
62
63
# File 'lib/ruconomic/api/entry.rb', line 59

def self.find_by_date_interval
  response = invoke('Entry_FindByDateInterval') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.find_by_serial_number_intervalHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns an array of handles for the entries with numbers in the given interval. Parameters: minNumber: The start of the interval. maxNumber: The end of the interval.



47
48
49
50
51
# File 'lib/ruconomic/api/entry.rb', line 47

def self.find_by_serial_number_interval
  response = invoke('Entry_FindBySerialNumberInterval') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_accountHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Get handle for account of an entry. Parameters: entryHandle: Handle for the entry.



83
84
85
86
87
# File 'lib/ruconomic/api/entry.rb', line 83

def self.
  response = invoke('Entry_GetAccount') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_amountHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the amount of an entry. Parameters: entryHandle: Handle for the entry.



95
96
97
98
99
# File 'lib/ruconomic/api/entry.rb', line 95

def self.get_amount
  response = invoke('Entry_GetAmount') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_amount_default_currencyHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the amount (in default currency) of an entry. Parameters: entryHandle: Handle for the entry.



107
108
109
110
111
# File 'lib/ruconomic/api/entry.rb', line 107

def self.get_amount_default_currency
  response = invoke('Entry_GetAmountDefaultCurrency') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_currencyHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the currency of the entry. Parameters: entryHandle: Handle for the entry.



167
168
169
170
171
# File 'lib/ruconomic/api/entry.rb', line 167

def self.get_currency
  response = invoke('Entry_GetCurrency') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns an entry data object for a given entry. Parameters: entityHandle: A handle for the entry.



12
13
14
15
16
# File 'lib/ruconomic/api/entry.rb', line 12

def self.get_data
  response = invoke('Entry_GetData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns entry data objects for a given set of entry handles. Parameters: entityHandles: An array of the entry handles.



24
25
26
27
28
# File 'lib/ruconomic/api/entry.rb', line 24

def self.get_data_array
  response = invoke('Entry_GetDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_dateHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the date of the entry. Parameters: entryHandle: Handle for the entry.



179
180
181
182
183
# File 'lib/ruconomic/api/entry.rb', line 179

def self.get_date
  response = invoke('Entry_GetDate') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_departmentHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets a handle for the department of an entry. The department is only accessible when there is access to the Dimension add-on module. Parameters: entryHandle: Handle for the entry.



214
215
216
217
218
# File 'lib/ruconomic/api/entry.rb', line 214

def self.get_department
  response = invoke('Entry_GetDepartment') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_distribution_keyHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets a handle for the distribution key of an entry. The distribution key is only accessible when there is access to the Dimension add-on module. Parameters: entryHandle: Handle for the entry.



226
227
228
229
230
# File 'lib/ruconomic/api/entry.rb', line 226

def self.get_distribution_key
  response = invoke('Entry_GetDistributionKey') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_documentHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the scanned document of the entry. Parameters: entryHandle: Handle for the entry.



274
275
276
277
278
# File 'lib/ruconomic/api/entry.rb', line 274

def self.get_document
  response = invoke('Entry_GetDocument') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_last_used_serial_numberHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns the last used serial number, or 0 if no serial numbers exists.



35
36
37
38
39
# File 'lib/ruconomic/api/entry.rb', line 35

def self.get_last_used_serial_number
  response = invoke('Entry_GetLastUsedSerialNumber') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_projectHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets handle for the project of the entry. Parameters: entryHandle: Handle for the entry.



262
263
264
265
266
# File 'lib/ruconomic/api/entry.rb', line 262

def self.get_project
  response = invoke('Entry_GetProject') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_quantity1Hash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the quantity1 of an entry. The quantity1 is only accessible when there is access to the Dimension add-on module. Parameters: entryHandle: Handle for the entry.



143
144
145
146
147
# File 'lib/ruconomic/api/entry.rb', line 143

def self.get_quantity1
  response = invoke('Entry_GetQuantity1') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_quantity2Hash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the quantity2 of an entry. The quantity2 is only accessible when there is access to the Dimension add-on module. Parameters: entryHandle: Handle for the entry.



155
156
157
158
159
# File 'lib/ruconomic/api/entry.rb', line 155

def self.get_quantity2
  response = invoke('Entry_GetQuantity2') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_serial_numberHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the number of an entry. Parameters: entryHandle: Handle for the entry.



71
72
73
74
75
# File 'lib/ruconomic/api/entry.rb', line 71

def self.get_serial_number
  response = invoke('Entry_GetSerialNumber') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_textHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the text of the entry. Parameters: entryHandle: Handle for the entry.



191
192
193
194
195
# File 'lib/ruconomic/api/entry.rb', line 191

def self.get_text
  response = invoke('Entry_GetText') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_typeHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the entry type of entry.



202
203
204
205
206
# File 'lib/ruconomic/api/entry.rb', line 202

def self.get_type
  response = invoke('Entry_GetType') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_unit1Hash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets a handle for the unit1 of an entry. The unit1 is only accessible when there is access to the Dimension add-on module. Parameters: entryHandle: Handle for the entry.



119
120
121
122
123
# File 'lib/ruconomic/api/entry.rb', line 119

def self.get_unit1
  response = invoke('Entry_GetUnit1') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_unit2Hash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets a handle for the unit2 of an entry. The unit2 is only accessible when there is access to the Dimension add-on module. Parameters: entryHandle: Handle for the entry.



131
132
133
134
135
# File 'lib/ruconomic/api/entry.rb', line 131

def self.get_unit2
  response = invoke('Entry_GetUnit2') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_vat_accountHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets a handle for the VAT account of an entry. Parameters: entryHandle: Handle for the entry.



238
239
240
241
242
# File 'lib/ruconomic/api/entry.rb', line 238

def self.
  response = invoke('Entry_GetVatAccount') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_voucher_numberHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the voucher number of the entry. Parameters: entryHandle: Handle for the entry.



250
251
252
253
254
# File 'lib/ruconomic/api/entry.rb', line 250

def self.get_voucher_number
  response = invoke('Entry_GetVoucherNumber') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.reverse_voucherHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Reverse all the entries that belong to the same voucher and are on the same date as this entry. Reverse creates opposite entries, thus undoing the voucher entries. This is done by multiplying amounts by -1. Parameters: cashBookEntryHandle: Handle for the cashbook entry that is base for the copy. newVoucherNumber: New voucher number if needed. If left out the voucher number from the entry copied is used. newVoucherDate: New voucher date if needed. If left out the date from the entry copied is used. newText: New text if needed. If left out the text from the entry copied is used. newCashBook: The CashBook to create the new entries on.



298
299
300
301
302
# File 'lib/ruconomic/api/entry.rb', line 298

def self.reverse_voucher
  response = invoke('Entry_ReverseVoucher') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.turn_voucherHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Turn all the entries that belong to the same voucher and are on the same date as this entry. Turn creates opposite entries, and then proceeds to create entries that have the opposite sign of the voucher entries. This is done by multiplying amounts by -2. Parameters: cashBookEntryHandle: Handle for the cashbook entry that is base for the copy. newVoucherNumber: New voucher number if needed. If left out the voucher number from the entry copied is used. newVoucherDate: New voucher date if needed. If left out the date from the entry copied is used. newText: New text if needed. If left out the text from the entry copied is used. newCashBook: The CashBook to create the new entries on.



310
311
312
313
314
# File 'lib/ruconomic/api/entry.rb', line 310

def self.turn_voucher
  response = invoke('Entry_TurnVoucher') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end