sagekit 0.1.0 → 0.1.2.2
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 +19 -0
- data/README.org +44 -14
- data/docs/index.html +201 -144
- data/docs/style.css +9 -0
- data/lib/sagekit/client.rb +40 -31
- data/lib/sagekit/collection.rb +20 -0
- data/lib/sagekit/objects/invoice_batch.rb +4 -0
- data/lib/sagekit/resource.rb +2 -0
- data/lib/sagekit/resources/AP/invoice_batches.rb +27 -0
- data/lib/sagekit/resources/{vendor_contract_costs.rb → AP/vendor_contract_costs.rb} +3 -3
- data/lib/sagekit/resources/{vendor_groups.rb → AP/vendor_groups.rb} +4 -4
- data/lib/sagekit/resources/{vendor_terms.rb → AP/vendor_terms.rb} +2 -2
- data/lib/sagekit/resources/{vendors.rb → AP/vendors.rb} +5 -5
- data/lib/sagekit/resources/{account_sets.rb → AR/account_sets.rb} +2 -2
- data/lib/sagekit/resources/{customer_groups.rb → AR/customer_groups.rb} +2 -2
- data/lib/sagekit/resources/{customer_terms.rb → AR/customer_terms.rb} +2 -2
- data/lib/sagekit/resources/{customers.rb → AR/customers.rb} +2 -2
- data/lib/sagekit/resources/{sales_persons.rb → AR/sales_persons.rb} +3 -2
- data/lib/sagekit/resources/{categories.rb → IC/categories.rb} +4 -4
- data/lib/sagekit/resources/{items.rb → IC/items.rb} +4 -4
- data/lib/sagekit/resources/{locations.rb → IC/locations.rb} +4 -4
- data/lib/sagekit/resources/{credit_notes.rb → OE/credit_notes.rb} +2 -2
- data/lib/sagekit/resources/OE/invoices.rb +12 -0
- data/lib/sagekit/resources/OE/sales_history.rb +16 -0
- data/lib/sagekit/resources/OE/sales_orders.rb +20 -0
- data/lib/sagekit/resources/{purchase_orders.rb → PO/purchase_orders.rb} +2 -2
- data/lib/sagekit/resources/{receipts.rb → PO/receipts.rb} +2 -2
- data/lib/sagekit/resources/PO/vendor_contract_costs.rb +27 -0
- data/lib/sagekit/version.rb +1 -1
- data/lib/sagekit.rb +35 -18
- metadata +30 -23
- data/lib/sagekit/resources/invoices.rb +0 -12
- data/lib/sagekit/resources/sales_history.rb +0 -16
- data/lib/sagekit/resources/sales_orders.rb +0 -40
data/docs/style.css
CHANGED
data/lib/sagekit/client.rb
CHANGED
@@ -13,76 +13,85 @@ module Sagekit
|
|
13
13
|
@adapter = adapter
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
def invoices
|
21
|
-
InvoicesResource.new(self)
|
16
|
+
# AP Accounts Payable
|
17
|
+
def invoice_batches
|
18
|
+
AP::InvoiceBatchesResource.new(self)
|
22
19
|
end
|
23
20
|
|
24
|
-
def
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
def purchase_orders
|
29
|
-
PurchaseOrdersResource.new(self)
|
21
|
+
def vendors
|
22
|
+
AP::VendorsResource.new(self)
|
30
23
|
end
|
31
24
|
|
32
|
-
def
|
33
|
-
|
25
|
+
def vendor_groups
|
26
|
+
AP::VendorGroupsResource.new(self)
|
34
27
|
end
|
35
28
|
|
36
|
-
def
|
37
|
-
|
29
|
+
def vendor_terms
|
30
|
+
AP::VendorTermsResource.new(self)
|
38
31
|
end
|
39
32
|
|
33
|
+
# AR Accounts Receivable
|
40
34
|
def customers
|
41
|
-
CustomersResource.new(self)
|
35
|
+
AR::CustomersResource.new(self)
|
42
36
|
end
|
43
37
|
|
44
38
|
def customer_groups
|
45
|
-
CustomerGroupsResource.new(self)
|
39
|
+
AR::CustomerGroupsResource.new(self)
|
46
40
|
end
|
47
41
|
|
48
42
|
def customer_terms
|
49
|
-
CustomerTermsResource.new(self)
|
43
|
+
AR::CustomerTermsResource.new(self)
|
50
44
|
end
|
51
45
|
|
52
46
|
def account_sets
|
53
|
-
AccountSetsResource.new(self)
|
47
|
+
AR::AccountSetsResource.new(self)
|
48
|
+
end
|
49
|
+
|
50
|
+
def sales_persons
|
51
|
+
AR::SalesPersonsResource.new(self)
|
54
52
|
end
|
55
53
|
|
54
|
+
# OE Order Entry
|
56
55
|
def credit_notes
|
57
56
|
CreditNotesResource.new(self)
|
58
57
|
end
|
59
58
|
|
60
|
-
def
|
61
|
-
|
59
|
+
def sales_orders
|
60
|
+
OE::SalesOrdersResource.new(self)
|
62
61
|
end
|
63
62
|
|
64
|
-
def
|
65
|
-
|
63
|
+
def invoices
|
64
|
+
OE::InvoicesResource.new(self)
|
66
65
|
end
|
67
66
|
|
68
|
-
def
|
69
|
-
|
67
|
+
def sales_history
|
68
|
+
OE::SalesHistoryResource.new(self)
|
70
69
|
end
|
71
70
|
|
72
|
-
|
73
|
-
|
71
|
+
# PO Purchase Orders
|
72
|
+
def purchase_orders
|
73
|
+
PO::PurchaseOrdersResource.new(self)
|
74
|
+
end
|
75
|
+
|
76
|
+
def receipts
|
77
|
+
PO::ReceiptsResource.new(self)
|
78
|
+
end
|
79
|
+
|
80
|
+
def vendor_contract_cost
|
81
|
+
PO::VendorContractCostsResource.new(self)
|
74
82
|
end
|
75
83
|
|
84
|
+
# IC Inventory Control
|
76
85
|
def items
|
77
|
-
ItemsResource.new(self)
|
86
|
+
IC::ItemsResource.new(self)
|
78
87
|
end
|
79
88
|
|
80
89
|
def categories
|
81
|
-
CategoriesResource.new(self)
|
90
|
+
IC::CategoriesResource.new(self)
|
82
91
|
end
|
83
92
|
|
84
93
|
def locations
|
85
|
-
LocationsResource.new(self)
|
94
|
+
IC::LocationsResource.new(self)
|
86
95
|
end
|
87
96
|
|
88
97
|
def connection
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Sagekit
|
2
|
+
class Collection
|
3
|
+
attr_reader :data, :total, :per_page
|
4
|
+
|
5
|
+
def self.from_response(response, type:)
|
6
|
+
body = response.body
|
7
|
+
new(
|
8
|
+
data: body["value"].map{ |attrs| type.new(attrs) },
|
9
|
+
total: body.dig("@odata.count"),
|
10
|
+
per_page: body["value"].count
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
def initialize(data:, total:, per_page:)
|
15
|
+
@data = data
|
16
|
+
@total = total
|
17
|
+
@per_page = per_page
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/sagekit/resource.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
module Sagekit
|
2
|
+
class AP::InvoiceBatchesResource < Resource
|
3
|
+
|
4
|
+
def list(company, **params)
|
5
|
+
Collection.from_response get_request("#{company}/AP/APInvoiceBatches", params: params), type: InvoiceBatch
|
6
|
+
end
|
7
|
+
|
8
|
+
def retreive(company, batch_number, **params)
|
9
|
+
InvoiceBatch.new get_request("#{company}/AP/APInvoiceBatches('#{batch_number}')", params: params).body
|
10
|
+
end
|
11
|
+
|
12
|
+
def create(company, **attributes)
|
13
|
+
InvoiceBatch.new post_request("#{company}/AP/APInvoiceBatches", body: attributes).body
|
14
|
+
end
|
15
|
+
|
16
|
+
def update(company, batch_number, **attributes)
|
17
|
+
patch_request("#{company}/AP/APInvoiceBatches(#{batch_number})", body: attributes)
|
18
|
+
true
|
19
|
+
end
|
20
|
+
|
21
|
+
def update_json(company, batch_number, options={})
|
22
|
+
patch_request("#{company}/AP/APInvoiceBatches(#{batch_number})", body: options)
|
23
|
+
true
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class VendorContractCostsResource < Resource
|
2
|
+
class AP::VendorContractCostsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/PO/POVendorContractCosts?$count=true", params: params), type: VendorContractCost
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, item, vendor, **params)
|
@@ -10,7 +10,7 @@ module Sagekit
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def create(company, **attributes)
|
13
|
-
|
13
|
+
VendorContractCost.new post_request("#{company}/PO/POVendorContractCosts", body: attributes).body
|
14
14
|
end
|
15
15
|
|
16
16
|
def update(company, item, vendor, **attributes)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class VendorGroupsResource < Resource
|
2
|
+
class AP::VendorGroupsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/AP/APVendorGroups?$count=true", params: params), type: Vendor
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, id, **params)
|
9
|
-
|
9
|
+
Vendor.new get_request("#{company}/AP/APVendorGroups('#{id}')", params: params).body
|
10
10
|
end
|
11
11
|
|
12
12
|
def create(company, **attributes)
|
13
|
-
|
13
|
+
Vendor.new post_request("#{company}/AP/APVendorGroups", body: attributes).body
|
14
14
|
end
|
15
15
|
|
16
16
|
def update(company, id, **attributes)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class VendorTermsResource < Resource
|
2
|
+
class AP::VendorTermsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/AP/APTerms?$count=true", params: params), type: Vendor
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, terms_code, **params)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class VendorsResource < Resource
|
2
|
+
class AP::VendorsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/AP/APVendors?$count=true", params: params), type: Vendor
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, vendor_id, **params)
|
9
|
-
|
9
|
+
Vendor.new get_request("#{company}/AP/APVendors('#{vendor_id}')", params: params).body
|
10
10
|
end
|
11
11
|
|
12
12
|
def create(company, **attributes)
|
13
|
-
|
13
|
+
Vendor.new post_request("#{company}/AP/APVendors", body: attributes).body
|
14
14
|
end
|
15
15
|
|
16
16
|
def update(company, vendor_id, **attributes)
|
@@ -24,7 +24,7 @@ module Sagekit
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def statistics(company, **params)
|
27
|
-
|
27
|
+
Collection.from_response get_request("#{company}/AP/APVendorStatistics?$count=true", params: params), type: Vendor
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class AccountSetsResource < Resource
|
2
|
+
class AR::AccountSetsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/AR/ARAccountSets?$count=true", params: params), type: AccountSet
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, id, **params)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class CustomerGroupsResource < Resource
|
2
|
+
class AR::CustomerGroupsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/AR/ARCustomerGroups?$count=true", params: params), type: Customer
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, id, **params)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class CustomerTermsResource < Resource
|
2
|
+
class AR::CustomerTermsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/AR/ARTerms", params: params), type: Customer
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, terms_code, **params)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class CustomersResource < Resource
|
2
|
+
class AR::CustomersResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/AR/ARCustomers?$count=true", params: params), type: Customer
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, customer_id, **params)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class SalesPersonsResource < Resource
|
2
|
+
class AR::SalesPersonsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/AR/ARSalespersons?$count=true", params: params), type: SalesPerson
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, id, **params)
|
@@ -25,6 +25,7 @@ module Sagekit
|
|
25
25
|
|
26
26
|
def statistics(company, **params)
|
27
27
|
SalesPerson.new get_request("#{company}/AR/ARSalespersonStatistics", params: params).body
|
28
|
+
Collection.from_response get_request("#{company}/AR/ARSalespersonStatistics?$count=true", params: params), type: SalesPerson
|
28
29
|
end
|
29
30
|
|
30
31
|
def filter_stats(company, sales_person, year, period)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class CategoriesResource < Resource
|
2
|
+
class IC::CategoriesResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/IC/ICCategories?$count=true", params: params), type: Category
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, cat_id, **params)
|
9
|
-
|
9
|
+
Category.new get_request("#{company}/IC/ICCategories('#{cat_id}')", params: params).body
|
10
10
|
end
|
11
11
|
|
12
12
|
def create(company, **attributes)
|
13
|
-
|
13
|
+
Category.new post_request("#{company}/IC/ICCategories", body: attributes).body
|
14
14
|
end
|
15
15
|
|
16
16
|
def update(company, cat_id, **attributes)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class ItemsResource < Resource
|
2
|
+
class IC::ItemsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/IC/ICItems?$count=true", params: params), type: Item
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, item_id, **params)
|
9
|
-
|
9
|
+
Item.new get_request("#{company}/IC/ICItems('#{item_id}')", params: params).body
|
10
10
|
end
|
11
11
|
|
12
12
|
def create(company, **attributes)
|
13
|
-
|
13
|
+
Item.new post_request("#{company}/IC/ICItems", body: attributes).body
|
14
14
|
end
|
15
15
|
|
16
16
|
def update(company, item_id, **attributes)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class LocationsResource < Resource
|
2
|
+
class IC::LocationsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/IC/ICLocations?$count=true", params: params), type: Item
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, location_id, **params)
|
9
|
-
|
9
|
+
Location.new get_request("#{company}/IC/ICLocations('#{locations_id}')", params: params).body
|
10
10
|
end
|
11
11
|
|
12
12
|
def create(company, **attributes)
|
13
|
-
|
13
|
+
Location.new post_request("#{company}/IC/ICLocations", body: attributes).body
|
14
14
|
end
|
15
15
|
|
16
16
|
def update(company, location_id, **attributes)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class CreditNotesResource < Resource
|
2
|
+
class OE::CreditNotesResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/OE/OECreditDebitNotes?$count=true", params: params), type: CreditNote
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, id, **params)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Sagekit
|
2
|
+
class OE::InvoicesResource < Resource
|
3
|
+
|
4
|
+
def list(company, **params)
|
5
|
+
Collection.from_response get_request("#{company}/OE/OEInvoices?$count=true", params: params), type: Invoice
|
6
|
+
end
|
7
|
+
|
8
|
+
def retreive(invoice_id, **params)
|
9
|
+
Invoice.new get_request("#{company}/OE/OEInvoices(#{invoice_id})", params: params).body
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Sagekit
|
2
|
+
class OE::SalesHistoryResource < Resource
|
3
|
+
|
4
|
+
def list(company, **params)
|
5
|
+
Collection.from_response get_request("#{company}/OE/OESalesHistory?$count=true", params: params), type: SalesHistory
|
6
|
+
end
|
7
|
+
|
8
|
+
def details(company, **params)
|
9
|
+
Collection.from_response get_request("#{company}/OE/OESalesHistoryDetails?$count=true", params: params), type: SalesHistory
|
10
|
+
end
|
11
|
+
|
12
|
+
def stats(company, **params)
|
13
|
+
Collection.from_response get_request("#{company}/OE/OESalesStatistics?$count=true", params: params), type: SalesHistory
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Sagekit
|
2
|
+
class OE::SalesOrdersResource < Resource
|
3
|
+
|
4
|
+
def list(company, **params)
|
5
|
+
Collection.from_response get_request("#{company}/OE/OEOrders?$count=true", params: params), type: Invoice
|
6
|
+
end
|
7
|
+
|
8
|
+
def retreive(company, order_id, **params)
|
9
|
+
SalesOrder.new get_request("#{company}/OE/OEOrders(#{order_id})", params: params).body
|
10
|
+
end
|
11
|
+
|
12
|
+
def create(company, **attributes)
|
13
|
+
SalesOrder.new post_request("#{company}/OE/OEOrders", body: attributes).body
|
14
|
+
end
|
15
|
+
|
16
|
+
def create_json(company, options={})
|
17
|
+
SalesOrder.new post_request("#{company}/OE/OEOrders", body: options).body
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class PurchaseOrdersResource < Resource
|
2
|
+
class PO::PurchaseOrdersResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/PO/POPurchaseOrders?$count=true", params: params), type: PurchaseOrder
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, order_id, **params)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Sagekit
|
2
|
-
class ReceiptsResource < Resource
|
2
|
+
class PO::ReceiptsResource < Resource
|
3
3
|
|
4
4
|
def list(company, **params)
|
5
|
-
|
5
|
+
Collection.from_response get_request("#{company}/PO/POReceipts?$count=true", params: params), type: Receipt
|
6
6
|
end
|
7
7
|
|
8
8
|
def retreive(company, receipt_id, **params)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Sagekit
|
2
|
+
class PO::VendorContractCostsResource < Resource
|
3
|
+
|
4
|
+
def list(company, **params)
|
5
|
+
Collection.from_response get_request("#{company}/PO/POVendorContractCosts?$count=true", params: params), type: VendorContractCost
|
6
|
+
end
|
7
|
+
|
8
|
+
def retreive(company, item, vendor, **params)
|
9
|
+
VendorContractCost.new get_request("#{company}/PO/POVendorContractCosts(ItemNumer='#{item}',VendorNumber='#{vendor}')", params: params).body
|
10
|
+
end
|
11
|
+
|
12
|
+
def create(company, **attributes)
|
13
|
+
VendorContractCost.new post_request("#{company}/PO/POVendorContractCosts", body: attributes).body
|
14
|
+
end
|
15
|
+
|
16
|
+
def update(company, item, vendor, **attributes)
|
17
|
+
patch_request("#{company}/PO/POVendorContractCosts(ItemNumer='#{item}',VendorNumber='#{vendor}')", body: attributes)
|
18
|
+
true
|
19
|
+
end
|
20
|
+
|
21
|
+
def delete(company, item, vendor)
|
22
|
+
delete_request("#{company}/PO/POVendorContractCosts(ItemNumer='#{item}',VendorNumber='#{vendor}')")
|
23
|
+
true
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
data/lib/sagekit/version.rb
CHANGED
data/lib/sagekit.rb
CHANGED
@@ -4,34 +4,50 @@ require_relative "sagekit/version"
|
|
4
4
|
|
5
5
|
module Sagekit
|
6
6
|
autoload :Client, "sagekit/client"
|
7
|
+
autoload :Collection, "sagekit/collection"
|
7
8
|
autoload :Error, "sagekit/error"
|
8
9
|
autoload :Object, "sagekit/object"
|
9
10
|
autoload :Resource, "sagekit/resource"
|
10
11
|
|
11
12
|
# Resources | Categories of Sage300 API calls
|
12
13
|
# OE Module
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
module OE
|
15
|
+
autoload :SalesOrdersResource, "sagekit/resources/OE/sales_orders"
|
16
|
+
autoload :InvoicesResource, "sagekit/resources/OR/OEnvoices"
|
17
|
+
autoload :SalesHistoryResource, "sagekit/resources/OE/sales_history"
|
18
|
+
autoload :CreditNotesResource, "sagekit/resources/OE/credit_notes"
|
19
|
+
end
|
20
|
+
|
17
21
|
# PO Module
|
18
|
-
|
19
|
-
|
20
|
-
|
22
|
+
module PO
|
23
|
+
autoload :PurchaseOrdersResource, "sagekit/resources/PO/purchase_orders"
|
24
|
+
autoload :ReceiptsResource, "sagekit/resources/PO/receipts"
|
25
|
+
autoload :VendorContractCostsResource, "sagekit/resources/PO/vendor_contract_costs"
|
26
|
+
end
|
27
|
+
|
21
28
|
# AR Module
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
29
|
+
module AR
|
30
|
+
autoload :CustomersResource, "sagekit/resources/AR/customers"
|
31
|
+
autoload :CustomerGroupsResource, "sagekit/resources/AR/customer_groups"
|
32
|
+
autoload :CustomerTermsResource, "sagekit/resources/AR/customer_terms"
|
33
|
+
autoload :SalesPersonsResource, "sagekit/resources/AR/sales_persons"
|
34
|
+
autoload :AccountSetsResource, "sagekit/resources/AR/account_sets"
|
35
|
+
end
|
36
|
+
|
27
37
|
# AP Module
|
28
|
-
|
29
|
-
|
30
|
-
|
38
|
+
module AP
|
39
|
+
autoload :InvoiceBatchesResource, "sagekit/resources/AP/invoice_batches"
|
40
|
+
autoload :VendorsResource, "sagekit/resources/AP/vendors"
|
41
|
+
autoload :VendorGroupsResource, "sagekit/resources/AP/vendor_groups"
|
42
|
+
autoload :VendorTermsResource, "sagekit/resources/AP/vendor_terms"
|
43
|
+
end
|
44
|
+
|
31
45
|
# IC Module
|
32
|
-
|
33
|
-
|
34
|
-
|
46
|
+
module IC
|
47
|
+
autoload :ItemsResource, "sagekit/resources/IC/items"
|
48
|
+
autoload :CategoriesResource, "sagekit/resources/IC/categories"
|
49
|
+
autoload :LocationsResource, "sagekit/resources/IC/locations"
|
50
|
+
end
|
35
51
|
|
36
52
|
# Objects
|
37
53
|
# OE Module
|
@@ -49,6 +65,7 @@ module Sagekit
|
|
49
65
|
autoload :AccountSet, "sagekit/objects/account_set.rb"
|
50
66
|
# AP Module
|
51
67
|
autoload :Vendor, "sagekit/objects/vendor.rb"
|
68
|
+
autoload :InvoiceBatch, "sagekit/objects/invoice_batch.rb"
|
52
69
|
# IC Module
|
53
70
|
autoload :Item, "sagekit/objects/item.rb"
|
54
71
|
autoload :Category, "sagekit/objects/category.rb"
|