cashctrl 0.0.1 → 0.2.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.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -0
  3. data/README.md +831 -14
  4. data/cashctrl.gemspec +1 -1
  5. data/lib/cashctrl/client.rb +219 -0
  6. data/lib/cashctrl/collection.rb +78 -0
  7. data/lib/cashctrl/configuration.rb +30 -0
  8. data/lib/cashctrl/error.rb +29 -0
  9. data/lib/cashctrl/errors.rb +76 -0
  10. data/lib/cashctrl/localized_string.rb +115 -0
  11. data/lib/cashctrl/models/account.rb +39 -0
  12. data/lib/cashctrl/models/article.rb +48 -0
  13. data/lib/cashctrl/models/asset.rb +37 -0
  14. data/lib/cashctrl/models/attachment.rb +14 -0
  15. data/lib/cashctrl/models/bank.rb +18 -0
  16. data/lib/cashctrl/models/category.rb +13 -0
  17. data/lib/cashctrl/models/certificate_document.rb +14 -0
  18. data/lib/cashctrl/models/certificate_template.rb +13 -0
  19. data/lib/cashctrl/models/cost_center.rb +17 -0
  20. data/lib/cashctrl/models/currency.rb +18 -0
  21. data/lib/cashctrl/models/custom_field.rb +18 -0
  22. data/lib/cashctrl/models/custom_field_group.rb +12 -0
  23. data/lib/cashctrl/models/file.rb +20 -0
  24. data/lib/cashctrl/models/fiscal_period.rb +16 -0
  25. data/lib/cashctrl/models/fiscal_period_task.rb +14 -0
  26. data/lib/cashctrl/models/history.rb +19 -0
  27. data/lib/cashctrl/models/insurance_type.rb +13 -0
  28. data/lib/cashctrl/models/journal.rb +65 -0
  29. data/lib/cashctrl/models/journal_import.rb +18 -0
  30. data/lib/cashctrl/models/journal_import_entry.rb +20 -0
  31. data/lib/cashctrl/models/journal_item.rb +20 -0
  32. data/lib/cashctrl/models/loader.rb +55 -0
  33. data/lib/cashctrl/models/location.rb +22 -0
  34. data/lib/cashctrl/models/order.rb +53 -0
  35. data/lib/cashctrl/models/order_book_entry.rb +17 -0
  36. data/lib/cashctrl/models/order_document.rb +15 -0
  37. data/lib/cashctrl/models/order_item.rb +23 -0
  38. data/lib/cashctrl/models/order_layout.rb +18 -0
  39. data/lib/cashctrl/models/order_payment.rb +16 -0
  40. data/lib/cashctrl/models/person.rb +78 -0
  41. data/lib/cashctrl/models/report.rb +15 -0
  42. data/lib/cashctrl/models/report_collection.rb +13 -0
  43. data/lib/cashctrl/models/report_element.rb +16 -0
  44. data/lib/cashctrl/models/rounding.rb +16 -0
  45. data/lib/cashctrl/models/salary_book_entry.rb +16 -0
  46. data/lib/cashctrl/models/salary_certificate.rb +16 -0
  47. data/lib/cashctrl/models/salary_document.rb +15 -0
  48. data/lib/cashctrl/models/salary_field.rb +16 -0
  49. data/lib/cashctrl/models/salary_layout.rb +13 -0
  50. data/lib/cashctrl/models/salary_payment.rb +16 -0
  51. data/lib/cashctrl/models/salary_setting.rb +12 -0
  52. data/lib/cashctrl/models/salary_statement.rb +19 -0
  53. data/lib/cashctrl/models/salary_status.rb +12 -0
  54. data/lib/cashctrl/models/salary_sum.rb +14 -0
  55. data/lib/cashctrl/models/salary_template.rb +12 -0
  56. data/lib/cashctrl/models/salary_type.rb +14 -0
  57. data/lib/cashctrl/models/sequence_number.rb +13 -0
  58. data/lib/cashctrl/models/setting.rb +33 -0
  59. data/lib/cashctrl/models/tax.rb +18 -0
  60. data/lib/cashctrl/models/text.rb +13 -0
  61. data/lib/cashctrl/models/title.rb +13 -0
  62. data/lib/cashctrl/models/unit.rb +11 -0
  63. data/lib/cashctrl/relation.rb +271 -0
  64. data/lib/cashctrl/resource.rb +433 -0
  65. data/lib/cashctrl/resources/account/bank.rb +14 -0
  66. data/lib/cashctrl/resources/account/category.rb +16 -0
  67. data/lib/cashctrl/resources/account/cost_center/category.rb +18 -0
  68. data/lib/cashctrl/resources/account/cost_center.rb +26 -0
  69. data/lib/cashctrl/resources/account.rb +28 -0
  70. data/lib/cashctrl/resources/attachments.rb +32 -0
  71. data/lib/cashctrl/resources/base.rb +237 -0
  72. data/lib/cashctrl/resources/currency.rb +17 -0
  73. data/lib/cashctrl/resources/custom_field/group.rb +16 -0
  74. data/lib/cashctrl/resources/custom_field.rb +18 -0
  75. data/lib/cashctrl/resources/file/category.rb +16 -0
  76. data/lib/cashctrl/resources/file.rb +82 -0
  77. data/lib/cashctrl/resources/fiscal_period/task.rb +20 -0
  78. data/lib/cashctrl/resources/fiscal_period.rb +54 -0
  79. data/lib/cashctrl/resources/history.rb +26 -0
  80. data/lib/cashctrl/resources/import_session.rb +43 -0
  81. data/lib/cashctrl/resources/inventory/article/category.rb +18 -0
  82. data/lib/cashctrl/resources/inventory/article/import.rb +13 -0
  83. data/lib/cashctrl/resources/inventory/article.rb +19 -0
  84. data/lib/cashctrl/resources/inventory/asset/category.rb +18 -0
  85. data/lib/cashctrl/resources/inventory/asset.rb +19 -0
  86. data/lib/cashctrl/resources/inventory/unit.rb +12 -0
  87. data/lib/cashctrl/resources/journal/import/entry.rb +33 -0
  88. data/lib/cashctrl/resources/journal/import.rb +16 -0
  89. data/lib/cashctrl/resources/journal.rb +56 -0
  90. data/lib/cashctrl/resources/location.rb +10 -0
  91. data/lib/cashctrl/resources/order/book_entry.rb +12 -0
  92. data/lib/cashctrl/resources/order/category.rb +21 -0
  93. data/lib/cashctrl/resources/order/document.rb +30 -0
  94. data/lib/cashctrl/resources/order/layout.rb +12 -0
  95. data/lib/cashctrl/resources/order/payment.rb +36 -0
  96. data/lib/cashctrl/resources/order.rb +47 -0
  97. data/lib/cashctrl/resources/organization.rb +13 -0
  98. data/lib/cashctrl/resources/person/category.rb +16 -0
  99. data/lib/cashctrl/resources/person/import.rb +11 -0
  100. data/lib/cashctrl/resources/person/title.rb +12 -0
  101. data/lib/cashctrl/resources/person.rb +21 -0
  102. data/lib/cashctrl/resources/report/collection.rb +40 -0
  103. data/lib/cashctrl/resources/report/element.rb +48 -0
  104. data/lib/cashctrl/resources/report.rb +34 -0
  105. data/lib/cashctrl/resources/rounding.rb +10 -0
  106. data/lib/cashctrl/resources/salary/book_entry.rb +12 -0
  107. data/lib/cashctrl/resources/salary/category.rb +16 -0
  108. data/lib/cashctrl/resources/salary/certificate/document.rb +47 -0
  109. data/lib/cashctrl/resources/salary/certificate/template.rb +18 -0
  110. data/lib/cashctrl/resources/salary/certificate.rb +20 -0
  111. data/lib/cashctrl/resources/salary/document.rb +42 -0
  112. data/lib/cashctrl/resources/salary/field.rb +24 -0
  113. data/lib/cashctrl/resources/salary/insurance/type.rb +14 -0
  114. data/lib/cashctrl/resources/salary/layout.rb +12 -0
  115. data/lib/cashctrl/resources/salary/payment.rb +36 -0
  116. data/lib/cashctrl/resources/salary/setting.rb +12 -0
  117. data/lib/cashctrl/resources/salary/statement.rb +42 -0
  118. data/lib/cashctrl/resources/salary/status.rb +16 -0
  119. data/lib/cashctrl/resources/salary/sum.rb +12 -0
  120. data/lib/cashctrl/resources/salary/template.rb +16 -0
  121. data/lib/cashctrl/resources/salary/type.rb +17 -0
  122. data/lib/cashctrl/resources/sequence_number.rb +14 -0
  123. data/lib/cashctrl/resources/setting.rb +34 -0
  124. data/lib/cashctrl/resources/tax.rb +10 -0
  125. data/lib/cashctrl/resources/text.rb +10 -0
  126. data/lib/cashctrl/schema.yml +712 -0
  127. data/lib/cashctrl/version.rb +2 -2
  128. data/lib/cashctrl.rb +125 -3
  129. data/lib/generators/model_generator.rb +104 -0
  130. data/sig/cashctrl.rbs +1 -1
  131. metadata +126 -2
@@ -0,0 +1,712 @@
1
+ account:
2
+ attributes:
3
+ category_id: { type: integer }
4
+ category_display: { type: string, readonly: true }
5
+ account_class: { type: string }
6
+ tax_id: { type: integer }
7
+ tax_name: { type: string, readonly: true }
8
+ currency_id: { type: integer }
9
+ currency_code: { type: string }
10
+ number: { type: string }
11
+ name: { type: string }
12
+ custom: { type: string }
13
+ notes: { type: string }
14
+ attachment_count: { type: integer, readonly: true }
15
+ allocation_count: { type: integer, readonly: true }
16
+ cost_center_ids: { type: string }
17
+ cost_center_numbers: { type: string, readonly: true }
18
+ opening_amount: { type: decimal }
19
+ end_amount: { type: decimal, readonly: true }
20
+ target_min: { type: decimal }
21
+ target_max: { type: decimal }
22
+ target_display: { type: string, readonly: true }
23
+ default_currency_opening_amount: { type: decimal, readonly: true }
24
+ default_currency_end_amount: { type: decimal, readonly: true }
25
+ is_inactive: { type: boolean }
26
+ is_in_salary_type: { type: boolean, readonly: true }
27
+ is_bank_account: { type: boolean, readonly: true }
28
+ belongs_to:
29
+ category: { resource: Account::Category }
30
+ tax: { resource: Tax }
31
+ currency: { resource: Currency }
32
+ nested:
33
+ attachments: { model: attachment }
34
+
35
+ person:
36
+ attributes:
37
+ category_id: { type: integer }
38
+ category_name: { type: string, readonly: true }
39
+ category_display: { type: string, readonly: true }
40
+ thumbnail_file_id: { type: integer }
41
+ certificate_template_id: { type: integer }
42
+ certificate_values: { type: string }
43
+ title: { type: string, readonly: true }
44
+ title_id: { type: integer }
45
+ title_sentence: { type: string, readonly: true }
46
+ gender: { type: string }
47
+ gender_name: { type: string, readonly: true }
48
+ nr: { type: string }
49
+ name: { type: string, readonly: true }
50
+ first_name: { type: string }
51
+ last_name: { type: string }
52
+ company: { type: string }
53
+ position: { type: string }
54
+ industry: { type: string }
55
+ department: { type: string }
56
+ language: { type: string }
57
+ language_name: { type: string, readonly: true }
58
+ iban: { type: string }
59
+ bic: { type: string }
60
+ vat_uid: { type: string }
61
+ date_birth: { type: date }
62
+ discount_percentage: { type: decimal }
63
+ discount_inherited: { type: decimal, readonly: true }
64
+ discount_effective: { type: decimal, readonly: true }
65
+ notes: { type: string }
66
+ email_work: { type: string }
67
+ email_private: { type: string }
68
+ phone_work: { type: string }
69
+ phone_private: { type: string }
70
+ mobile_work: { type: string }
71
+ mobile_private: { type: string }
72
+ url: { type: string }
73
+ address: { type: string }
74
+ zip: { type: string }
75
+ city: { type: string }
76
+ canton: { type: string }
77
+ country: { type: string }
78
+ country_name: { type: string, readonly: true }
79
+ superior_id: { type: integer }
80
+ superior_name: { type: string, readonly: true }
81
+ color: { type: string }
82
+ alt_name: { type: string }
83
+ user_id: { type: integer }
84
+ location_id: { type: integer }
85
+ location_name: { type: string, readonly: true }
86
+ ssn: { type: string }
87
+ insurance_nr: { type: string }
88
+ insurance_member_nr: { type: string }
89
+ custom: { type: string }
90
+ attachment_count: { type: integer, readonly: true }
91
+ children_count: { type: integer, readonly: true }
92
+ is_customer: { type: boolean }
93
+ is_vendor: { type: boolean }
94
+ is_employee: { type: boolean }
95
+ is_insurance: { type: boolean }
96
+ is_family: { type: boolean }
97
+ is_auto_fill_responsible_person: { type: boolean }
98
+ is_inactive: { type: boolean }
99
+ belongs_to:
100
+ category: { resource: Person::Category }
101
+ superior: { resource: Person }
102
+ location: { resource: Location }
103
+ has_many:
104
+ orders: { resource: Order, foreign_key: associate_id }
105
+ journals: { resource: Journal, foreign_key: associate_id }
106
+ nested:
107
+ attachments: { model: attachment }
108
+
109
+ currency:
110
+ attributes:
111
+ code: { type: string }
112
+ description: { type: string }
113
+ rate: { type: decimal }
114
+ value: { type: string, readonly: true }
115
+ index: { type: string, readonly: true }
116
+ text: { type: string, readonly: true }
117
+ is_default: { type: boolean }
118
+ is_auto: { type: boolean }
119
+
120
+ tax:
121
+ attributes:
122
+ name: { type: string }
123
+ percentage: { type: decimal }
124
+ document_name: { type: string }
125
+ calc_type: { type: string }
126
+ account_id: { type: integer }
127
+ account_name: { type: string, readonly: true }
128
+ is_inactive: { type: boolean }
129
+ belongs_to:
130
+ account: { resource: Account }
131
+
132
+ journal:
133
+ attributes:
134
+ debit_id: { type: integer }
135
+ debit_name: { type: string, readonly: true }
136
+ credit_id: { type: integer }
137
+ credit_name: { type: string, readonly: true }
138
+ associate_id: { type: integer }
139
+ associate_name: { type: string, readonly: true }
140
+ tax_id: { type: integer }
141
+ tax_name: { type: string, readonly: true }
142
+ order_id: { type: integer, readonly: true }
143
+ order_book_entry_id: { type: integer, readonly: true }
144
+ salary_book_entry_id: { type: integer, readonly: true }
145
+ statement_id: { type: integer, readonly: true }
146
+ inventory_id: { type: integer, readonly: true }
147
+ import_entry_id: { type: integer, readonly: true }
148
+ type: { type: string, readonly: true }
149
+ date_added: { type: date }
150
+ title: { type: string }
151
+ custom: { type: string }
152
+ notes: { type: string }
153
+ reference: { type: string }
154
+ amount: { type: decimal }
155
+ items: { type: json }
156
+ currency_id: { type: integer }
157
+ currency_rate: { type: decimal }
158
+ currency_code: { type: string, readonly: true }
159
+ account_id: { type: integer }
160
+ account_currency_id: { type: integer, readonly: true }
161
+ account_class: { type: string, readonly: true }
162
+ balance: { type: decimal, readonly: true }
163
+ name_singular: { type: string, readonly: true }
164
+ order_type: { type: string, readonly: true }
165
+ items_count: { type: integer, readonly: true }
166
+ recurrence: { type: string }
167
+ start_date: { type: date }
168
+ end_date: { type: date }
169
+ days_before: { type: integer }
170
+ notify_type: { type: string }
171
+ notify_person_id: { type: integer }
172
+ notify_user_id: { type: integer }
173
+ notify_email: { type: string }
174
+ attachment_count: { type: integer, readonly: true }
175
+ allocation_count: { type: integer, readonly: true }
176
+ cost_center_ids: { type: string }
177
+ cost_center_numbers: { type: string, readonly: true }
178
+ imported: { type: datetime, readonly: true }
179
+ imported_by: { type: string, readonly: true }
180
+ is_recurring: { type: boolean, readonly: true }
181
+ belongs_to:
182
+ debit: { resource: Account }
183
+ credit: { resource: Account }
184
+ associate: { resource: Person }
185
+ tax: { resource: Tax }
186
+ currency: { resource: Currency }
187
+ order: { resource: Order }
188
+ nested:
189
+ items: { model: journal_item }
190
+ attachments: { model: attachment }
191
+
192
+ order:
193
+ attributes:
194
+ category_id: { type: integer }
195
+ category_name: { type: string, readonly: true }
196
+ category_display: { type: string, readonly: true }
197
+ associate_id: { type: integer }
198
+ associate_name: { type: string, readonly: true }
199
+ responsible_person_id: { type: integer }
200
+ responsible_person_name: { type: string, readonly: true }
201
+ type: { type: string }
202
+ nr: { type: string }
203
+ status: { type: string }
204
+ status_name: { type: string, readonly: true }
205
+ date: { type: date }
206
+ due_date: { type: date }
207
+ currency_id: { type: integer }
208
+ currency_code: { type: string, readonly: true }
209
+ currency_rate: { type: decimal }
210
+ discount_percentage: { type: decimal }
211
+ rounding_id: { type: integer }
212
+ description: { type: string }
213
+ header: { type: string }
214
+ footer: { type: string }
215
+ items: { type: json }
216
+ custom: { type: string }
217
+ notes: { type: string }
218
+ total: { type: decimal, readonly: true }
219
+ total_default_currency: { type: decimal, readonly: true }
220
+ attachment_count: { type: integer, readonly: true }
221
+ recurrence: { type: string }
222
+ start_date: { type: date }
223
+ end_date: { type: date }
224
+ days_before: { type: integer }
225
+ notify_type: { type: string }
226
+ notify_person_id: { type: integer }
227
+ notify_user_id: { type: integer }
228
+ notify_email: { type: string }
229
+ is_recurring: { type: boolean, readonly: true }
230
+ belongs_to:
231
+ category: { resource: Order::Category }
232
+ associate: { resource: Person }
233
+ responsible_person: { resource: Person }
234
+ currency: { resource: Currency }
235
+ rounding: { resource: Rounding }
236
+ nested:
237
+ items: { model: order_item }
238
+ attachments: { model: attachment }
239
+
240
+ fiscal_period:
241
+ attributes:
242
+ name: { type: string }
243
+ start: { type: date }
244
+ end: { type: date }
245
+ is_current: { type: boolean, readonly: true }
246
+ is_closed: { type: boolean, readonly: true }
247
+ is_custom: { type: boolean }
248
+
249
+ location:
250
+ attributes:
251
+ name: { type: string }
252
+ address: { type: string }
253
+ zip: { type: string }
254
+ city: { type: string }
255
+ country: { type: string }
256
+ country_name: { type: string, readonly: true }
257
+ logo_file_id: { type: integer }
258
+ bic: { type: string }
259
+ iban: { type: string }
260
+ qr_iban: { type: string }
261
+ vat_uid: { type: string }
262
+ is_default: { type: boolean }
263
+
264
+ rounding:
265
+ attributes:
266
+ name: { type: string }
267
+ account_id: { type: integer }
268
+ account_name: { type: string, readonly: true }
269
+ mode: { type: string }
270
+ value: { type: decimal }
271
+ belongs_to:
272
+ account: { resource: Account }
273
+
274
+ sequence_number:
275
+ attributes:
276
+ name: { type: string }
277
+ pattern: { type: string }
278
+ counter: { type: integer }
279
+
280
+ custom_field:
281
+ attributes:
282
+ type: { type: string }
283
+ group_id: { type: integer }
284
+ group_name: { type: string, readonly: true }
285
+ name: { type: string }
286
+ description: { type: string }
287
+ data_type: { type: string }
288
+ values: { type: string }
289
+ is_multi: { type: boolean }
290
+
291
+ file:
292
+ attributes:
293
+ category_id: { type: integer }
294
+ category_name: { type: string, readonly: true }
295
+ name: { type: string }
296
+ mime_type: { type: string }
297
+ size: { type: integer, readonly: true }
298
+ width: { type: integer, readonly: true }
299
+ height: { type: integer, readonly: true }
300
+ notes: { type: string }
301
+ is_archived: { type: boolean, readonly: true }
302
+ belongs_to:
303
+ category: { resource: File::Category }
304
+
305
+ article:
306
+ attributes:
307
+ category_id: { type: integer }
308
+ category_name: { type: string, readonly: true }
309
+ nr: { type: string }
310
+ name: { type: string }
311
+ description: { type: string }
312
+ unit_id: { type: integer }
313
+ unit_name: { type: string, readonly: true }
314
+ unit_price: { type: decimal }
315
+ sales_account_id: { type: integer }
316
+ sales_account_name: { type: string, readonly: true }
317
+ purchase_account_id: { type: integer }
318
+ purchase_account_name: { type: string, readonly: true }
319
+ sales_tax_id: { type: integer }
320
+ sales_tax_name: { type: string, readonly: true }
321
+ purchase_tax_id: { type: integer }
322
+ purchase_tax_name: { type: string, readonly: true }
323
+ currency_id: { type: integer }
324
+ currency_code: { type: string, readonly: true }
325
+ last_purchase_price: { type: decimal, readonly: true }
326
+ last_sales_price: { type: decimal, readonly: true }
327
+ bin_location: { type: string }
328
+ stock: { type: decimal }
329
+ min_stock: { type: decimal }
330
+ custom: { type: string }
331
+ notes: { type: string }
332
+ attachment_count: { type: integer, readonly: true }
333
+ is_stock_article: { type: boolean }
334
+ is_purchase_price_gross: { type: boolean }
335
+ is_sales_price_gross: { type: boolean }
336
+ is_inactive: { type: boolean }
337
+ belongs_to:
338
+ category: { resource: Inventory::Article::Category }
339
+ unit: { resource: Inventory::Unit }
340
+ sales_account: { resource: Account }
341
+ purchase_account: { resource: Account }
342
+ sales_tax: { resource: Tax }
343
+ purchase_tax: { resource: Tax }
344
+ currency: { resource: Currency }
345
+ nested:
346
+ attachments: { model: attachment }
347
+
348
+ asset:
349
+ attributes:
350
+ category_id: { type: integer }
351
+ category_name: { type: string, readonly: true }
352
+ nr: { type: string }
353
+ name: { type: string }
354
+ date_acquired: { type: date }
355
+ value_acquisition: { type: decimal }
356
+ value_current: { type: decimal, readonly: true }
357
+ value_depreciation: { type: decimal, readonly: true }
358
+ value_salvage: { type: decimal }
359
+ depreciation_type: { type: string }
360
+ depreciation_rate: { type: decimal }
361
+ useful_life: { type: integer }
362
+ account_asset_id: { type: integer }
363
+ account_asset_name: { type: string, readonly: true }
364
+ account_depreciation_id: { type: integer }
365
+ account_depreciation_name: { type: string, readonly: true }
366
+ account_expense_id: { type: integer }
367
+ account_expense_name: { type: string, readonly: true }
368
+ custom: { type: string }
369
+ notes: { type: string }
370
+ attachment_count: { type: integer, readonly: true }
371
+ is_inactive: { type: boolean }
372
+ belongs_to:
373
+ category: { resource: Inventory::Asset::Category }
374
+ account_asset: { resource: Account }
375
+ account_depreciation: { resource: Account }
376
+ account_expense: { resource: Account }
377
+ nested:
378
+ attachments: { model: attachment }
379
+
380
+ unit:
381
+ attributes:
382
+ name: { type: string }
383
+
384
+ category:
385
+ attributes:
386
+ parent_id: { type: integer }
387
+ name: { type: string }
388
+ sequence: { type: integer }
389
+
390
+ text:
391
+ attributes:
392
+ type: { type: string }
393
+ name: { type: string }
394
+ value: { type: string }
395
+
396
+ report:
397
+ attributes:
398
+ name: { type: string }
399
+ type: { type: string }
400
+ data: { type: json }
401
+ columns: { type: json }
402
+ has_children: { type: boolean, readonly: true }
403
+
404
+ setting:
405
+ attributes:
406
+ fiscal_period_id: { type: integer }
407
+ fiscal_period_name: { type: string, readonly: true }
408
+ default_currency_id: { type: integer }
409
+ default_currency_code: { type: string, readonly: true }
410
+ default_location_id: { type: integer }
411
+ default_location_name: { type: string, readonly: true }
412
+ default_debit_id: { type: integer }
413
+ default_debit_name: { type: string, readonly: true }
414
+ default_credit_id: { type: integer }
415
+ default_credit_name: { type: string, readonly: true }
416
+ default_opening_id: { type: integer }
417
+ default_opening_name: { type: string, readonly: true }
418
+ default_tax_id: { type: integer }
419
+ default_tax_name: { type: string, readonly: true }
420
+ default_order_category_id: { type: integer }
421
+ default_person_category_customer_id: { type: integer }
422
+ default_person_category_vendor_id: { type: integer }
423
+ logo_file_id: { type: integer }
424
+ csv_delimiter: { type: string }
425
+ journal_import_duplicate_check: { type: string }
426
+ journal_import_force_duplicate_detection: { type: boolean }
427
+ tax_accounting_method: { type: string }
428
+ tax_type: { type: string }
429
+
430
+ history:
431
+ attributes:
432
+ type: { type: string }
433
+ action: { type: string }
434
+ entity_id: { type: integer }
435
+ entity_name: { type: string }
436
+ user_id: { type: integer }
437
+ user_name: { type: string }
438
+ date: { type: datetime }
439
+ description: { type: string }
440
+ changes: { type: json }
441
+
442
+ bank:
443
+ attributes:
444
+ account_id: { type: integer }
445
+ account_name: { type: string, readonly: true }
446
+ name: { type: string }
447
+ iban: { type: string }
448
+ bic: { type: string }
449
+ qr_iban: { type: string }
450
+ belongs_to:
451
+ account: { resource: Account }
452
+ nested:
453
+ attachments: { model: attachment }
454
+
455
+ cost_center:
456
+ attributes:
457
+ category_id: { type: integer }
458
+ category_name: { type: string, readonly: true }
459
+ number: { type: string }
460
+ name: { type: string }
461
+ notes: { type: string }
462
+ belongs_to:
463
+ category: { resource: Account::CostCenter::Category }
464
+ nested:
465
+ attachments: { model: attachment }
466
+
467
+ title:
468
+ attributes:
469
+ name: { type: string }
470
+ sentence: { type: string }
471
+ gender: { type: string }
472
+
473
+ custom_field_group:
474
+ attributes:
475
+ type: { type: string }
476
+ name: { type: string }
477
+
478
+ order_book_entry:
479
+ attributes:
480
+ order_id: { type: integer }
481
+ account_id: { type: integer }
482
+ account_name: { type: string, readonly: true }
483
+ tax_id: { type: integer }
484
+ tax_name: { type: string, readonly: true }
485
+ description: { type: string }
486
+ amount: { type: decimal }
487
+
488
+ order_document:
489
+ attributes:
490
+ order_id: { type: integer }
491
+ layout_id: { type: integer }
492
+ name: { type: string }
493
+ file_id: { type: integer, readonly: true }
494
+ mime_type: { type: string, readonly: true }
495
+
496
+ order_layout:
497
+ attributes:
498
+ type: { type: string }
499
+ name: { type: string }
500
+ page_size: { type: string }
501
+ margin_top: { type: decimal }
502
+ margin_bottom: { type: decimal }
503
+ margin_left: { type: decimal }
504
+ margin_right: { type: decimal }
505
+ is_default: { type: boolean }
506
+
507
+ order_payment:
508
+ attributes:
509
+ order_id: { type: integer }
510
+ account_id: { type: integer }
511
+ account_name: { type: string, readonly: true }
512
+ date: { type: date }
513
+ amount: { type: decimal }
514
+ notes: { type: string }
515
+
516
+ journal_import:
517
+ attributes:
518
+ account_id: { type: integer }
519
+ account_name: { type: string, readonly: true }
520
+ name: { type: string }
521
+ date_start: { type: date }
522
+ date_end: { type: date }
523
+ total_entries: { type: integer, readonly: true }
524
+ mapped_entries: { type: integer, readonly: true }
525
+ booked_entries: { type: integer, readonly: true }
526
+
527
+ journal_import_entry:
528
+ attributes:
529
+ import_id: { type: integer }
530
+ date: { type: date }
531
+ amount: { type: decimal }
532
+ description: { type: string }
533
+ reference: { type: string }
534
+ balance: { type: decimal }
535
+ debit_id: { type: integer }
536
+ credit_id: { type: integer }
537
+ is_booked: { type: boolean, readonly: true }
538
+ is_duplicate: { type: boolean, readonly: true }
539
+
540
+ fiscal_period_task:
541
+ attributes:
542
+ fiscal_period_id: { type: integer }
543
+ name: { type: string }
544
+ description: { type: string }
545
+ is_done: { type: boolean }
546
+
547
+ report_collection:
548
+ attributes:
549
+ name: { type: string }
550
+ fiscal_period_id: { type: integer }
551
+ elements: { type: json }
552
+
553
+ report_element:
554
+ attributes:
555
+ collection_id: { type: integer }
556
+ report_id: { type: integer }
557
+ name: { type: string }
558
+ type: { type: string }
559
+ params: { type: json }
560
+ sequence: { type: integer }
561
+
562
+ salary_book_entry:
563
+ attributes:
564
+ salary_id: { type: integer }
565
+ statement_id: { type: integer }
566
+ account_id: { type: integer }
567
+ account_name: { type: string, readonly: true }
568
+ description: { type: string }
569
+ amount: { type: decimal }
570
+
571
+ salary_certificate:
572
+ attributes:
573
+ person_id: { type: integer }
574
+ person_name: { type: string, readonly: true }
575
+ template_id: { type: integer }
576
+ year: { type: integer }
577
+ values: { type: json }
578
+ belongs_to:
579
+ person: { resource: Person }
580
+
581
+ salary_document:
582
+ attributes:
583
+ salary_id: { type: integer }
584
+ statement_id: { type: integer }
585
+ layout_id: { type: integer }
586
+ name: { type: string }
587
+ file_id: { type: integer, readonly: true }
588
+
589
+ salary_field:
590
+ attributes:
591
+ type_id: { type: integer }
592
+ name: { type: string }
593
+ description: { type: string }
594
+ calc_formula: { type: string }
595
+ sequence: { type: integer }
596
+ is_visible: { type: boolean }
597
+
598
+ salary_layout:
599
+ attributes:
600
+ type: { type: string }
601
+ name: { type: string }
602
+ is_default: { type: boolean }
603
+
604
+ salary_payment:
605
+ attributes:
606
+ statement_id: { type: integer }
607
+ account_id: { type: integer }
608
+ account_name: { type: string, readonly: true }
609
+ date: { type: date }
610
+ amount: { type: decimal }
611
+ notes: { type: string }
612
+
613
+ salary_setting:
614
+ attributes:
615
+ name: { type: string }
616
+ value: { type: string }
617
+
618
+ salary_statement:
619
+ attributes:
620
+ person_id: { type: integer }
621
+ person_name: { type: string, readonly: true }
622
+ period_start: { type: date }
623
+ period_end: { type: date }
624
+ status: { type: string }
625
+ total_gross: { type: decimal, readonly: true }
626
+ total_net: { type: decimal, readonly: true }
627
+ belongs_to:
628
+ person: { resource: Person }
629
+ nested:
630
+ attachments: { model: attachment }
631
+
632
+ salary_status:
633
+ attributes:
634
+ name: { type: string }
635
+ sequence: { type: integer }
636
+
637
+ salary_sum:
638
+ attributes:
639
+ type_id: { type: integer }
640
+ name: { type: string }
641
+ description: { type: string }
642
+ sequence: { type: integer }
643
+
644
+ salary_template:
645
+ attributes:
646
+ name: { type: string }
647
+ description: { type: string }
648
+
649
+ salary_type:
650
+ attributes:
651
+ name: { type: string }
652
+ description: { type: string }
653
+ account_id: { type: integer }
654
+ account_name: { type: string, readonly: true }
655
+
656
+ insurance_type:
657
+ attributes:
658
+ name: { type: string }
659
+ code: { type: string }
660
+ description: { type: string }
661
+
662
+ certificate_document:
663
+ attributes:
664
+ certificate_id: { type: integer }
665
+ layout_id: { type: integer }
666
+ name: { type: string }
667
+ file_id: { type: integer, readonly: true }
668
+
669
+ certificate_template:
670
+ attributes:
671
+ name: { type: string }
672
+ year: { type: integer }
673
+ fields: { type: json }
674
+
675
+ journal_item:
676
+ attributes:
677
+ account_id: { type: integer }
678
+ debit: { type: decimal }
679
+ credit: { type: decimal }
680
+ description: { type: string }
681
+ tax_id: { type: integer }
682
+ associate_id: { type: integer }
683
+ amount: { type: decimal, readonly: true }
684
+ belongs_to:
685
+ account: { resource: Account }
686
+ tax: { resource: Tax }
687
+ associate: { resource: Person }
688
+
689
+ order_item:
690
+ attributes:
691
+ account_id: { type: integer }
692
+ tax_id: { type: integer }
693
+ unit_id: { type: integer }
694
+ name: { type: string }
695
+ description: { type: string }
696
+ article_nr: { type: string }
697
+ quantity: { type: decimal }
698
+ unit_price: { type: decimal }
699
+ discount_percentage: { type: decimal }
700
+ type: { type: string }
701
+ belongs_to:
702
+ account: { resource: Account }
703
+ tax: { resource: Tax }
704
+ unit: { resource: Inventory::Unit }
705
+
706
+ attachment:
707
+ attributes:
708
+ file_id: { type: integer }
709
+ name: { type: string }
710
+ mime_type: { type: string }
711
+ belongs_to:
712
+ file: { resource: File }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Cashctrl
4
- VERSION = "0.0.1"
3
+ module CashCtrl
4
+ VERSION = "0.2.0"
5
5
  end