xsys 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/xsys.rb +5 -2
- data/lib/xsys/api.rb +4 -1
- data/lib/xsys/model/user.rb +1 -1
- data/lib/xsys/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c76da81b4985a62fbb59953395e74e1b621d5bc
|
4
|
+
data.tar.gz: 2dd961f33dd02d9b2652ba878cfd3af80c1944fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa3f00530bbb40b82281e5aa1600722f56a9129db29cf669c38efe4209db0b1b27cb9eb8575301c013977635ba9ab8c147f33841b94258c050e310dabd327855
|
7
|
+
data.tar.gz: 8b33cf4be69c2799df96318e7fe29239a4141a5f9c41cecb6a6930d82ca39824216633f96cfea2f78e5181f3d05806a6b6ca75bd9b20250a019f7e8efc3818d4
|
data/CHANGELOG.md
CHANGED
data/lib/xsys.rb
CHANGED
@@ -6,13 +6,16 @@ require 'xsys/model/product_category'
|
|
6
6
|
require 'xsys/model/product_provider'
|
7
7
|
require 'xsys/model/provider_kind'
|
8
8
|
require 'xsys/model/purchase_order_item'
|
9
|
+
require 'xsys/model/purchases_position'
|
9
10
|
require 'xsys/model/sale_item'
|
10
11
|
require 'xsys/model/sales_period'
|
12
|
+
require 'xsys/model/sales_position'
|
11
13
|
require 'xsys/model/seller'
|
12
14
|
require 'xsys/model/shop'
|
13
15
|
require 'xsys/model/stock'
|
14
|
-
require 'xsys/model/
|
15
|
-
require 'xsys/model/
|
16
|
+
require 'xsys/model/stock_control'
|
17
|
+
require 'xsys/model/stock_control_item'
|
18
|
+
require 'xsys/model/user'
|
16
19
|
|
17
20
|
require 'xsys/api'
|
18
21
|
require 'xsys/pagination'
|
data/lib/xsys/api.rb
CHANGED
@@ -101,7 +101,7 @@ module Xsys
|
|
101
101
|
request.map { |r| Model::PurchasesPosition.new(r) }
|
102
102
|
end
|
103
103
|
|
104
|
-
def self.get_stock_controls(params)
|
104
|
+
def self.get_stock_controls(params={})
|
105
105
|
request = get_request('/stock_controls', params)
|
106
106
|
|
107
107
|
request.map { |r| Model::StockControl.new(r) }
|
@@ -125,6 +125,9 @@ module Xsys
|
|
125
125
|
request.map { |r| Model::StockControlItem.new(r) }
|
126
126
|
end
|
127
127
|
|
128
|
+
def self.get_users
|
129
|
+
get_request('/users').map { |r| Model::User.new(r) }
|
130
|
+
end
|
128
131
|
|
129
132
|
private
|
130
133
|
|
data/lib/xsys/model/user.rb
CHANGED
data/lib/xsys/version.rb
CHANGED