Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/myob-api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
require 'myob/api/models/customer_payment'
require 'myob/api/models/invoice'
require 'myob/api/models/invoice_item'
require 'myob/api/models/order'
require 'myob/api/models/order_item'

require 'myob/api/models/payroll_category'
require 'myob/api/models/wage'
Expand All @@ -32,4 +34,8 @@

require 'myob/api/models/employee_payroll_advice'

require 'myob/api/models/inventory_adjustment'
require 'myob/api/models/inventory_item_price_matrix'
require 'myob/api/models/inventory_item'

require 'myob/api/client'
6 changes: 6 additions & 0 deletions lib/myob/api/models/general_ledger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ def model_route
end
end

class Currency < Base
def model_route
'GeneralLedger/Currency'
end
end

class GeneralJournal < Base
def model_route
'GeneralLedger/GeneralJournal'
Expand Down
11 changes: 11 additions & 0 deletions lib/myob/api/models/inventory_adjustment.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Myob
module Api
module Model
class InventoryAdjustment < Base
def model_route
'Inventory/Adjustment'
end
end
end
end
end
11 changes: 11 additions & 0 deletions lib/myob/api/models/inventory_item.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Myob
module Api
module Model
class InventoryItem < Base
def model_route
'Inventory/Item'
end
end
end
end
end
11 changes: 11 additions & 0 deletions lib/myob/api/models/inventory_item_price_matrix.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Myob
module Api
module Model
class InventoryItemPriceMatrix < Base
def model_route
'Inventory/ItemPriceMatrix'
end
end
end
end
end
11 changes: 11 additions & 0 deletions lib/myob/api/models/order.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Myob
module Api
module Model
class Order < Base
def model_route
'Sale/Order'
end
end
end
end
end
11 changes: 11 additions & 0 deletions lib/myob/api/models/order_item.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Myob
module Api
module Model
class OrderItem < Base
def model_route
'Sale/Order/Item'
end
end
end
end
end