vng 3.3.2 → 3.4.0
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/vng/version.rb +1 -1
- data/lib/vng/work_order.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82efc2a53c1701fc7eb085e9288eb19f5aad31bd8c6b53a741b7df6f7f3614fb
|
4
|
+
data.tar.gz: ce64e32bef02da3d05f0bb2abe617d43fb3e6a88e5f9ef17b7513d7436de0be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d0ea75c0ed1a0597ceeaead6523c2cc1e398127bf6bf52a738f82ccbeb92fe7d1dcc8821beee09716a20976878f2b62c0797e225742215b39aba2ef4237f824
|
7
|
+
data.tar.gz: a483291bb5db42d991b3574dca10786f617dd6f7c263142430d926bd9c2cd3a238f01e72ddc655c0c3fdfa70c59f834ccbf8ad4d901b1dec61c3150a8d271cb5
|
data/CHANGELOG.md
CHANGED
data/lib/vng/version.rb
CHANGED
data/lib/vng/work_order.rb
CHANGED
@@ -5,9 +5,9 @@ module Vng
|
|
5
5
|
class WorkOrder < Resource
|
6
6
|
PATH = '/api/v1/data/WorkOrders/'
|
7
7
|
|
8
|
-
attr_reader :id, :scheduled_on, :price, :discount, :tax, :tip, :duration, :total
|
8
|
+
attr_reader :id, :scheduled_on, :price, :discount, :tax, :tip, :duration, :total, :route_id
|
9
9
|
|
10
|
-
def initialize(id:, scheduled_on: nil, price: nil, discount: nil, tax: nil, tip: nil, duration: nil, total: nil)
|
10
|
+
def initialize(id:, scheduled_on: nil, price: nil, discount: nil, tax: nil, tip: nil, duration: nil, total: nil, route_id: nil)
|
11
11
|
@id = id
|
12
12
|
@scheduled_on = scheduled_on
|
13
13
|
@price = price
|
@@ -16,6 +16,7 @@ module Vng
|
|
16
16
|
@tip = tip
|
17
17
|
@duration = duration
|
18
18
|
@total = total
|
19
|
+
@route_id = route_id
|
19
20
|
end
|
20
21
|
|
21
22
|
def self.create(lock_id:, client_id:, contact_id:, location_id:, duration:, summary:, line_items:)
|
@@ -56,8 +57,9 @@ module Vng
|
|
56
57
|
tip = BigDecimal(value_for_field body, 810)
|
57
58
|
duration = Integer(value_for_field body, 186)
|
58
59
|
total = BigDecimal(value_for_field body, 9835)
|
60
|
+
route_id = value_for_relation body, 'route'
|
59
61
|
|
60
|
-
new id:, scheduled_on:, price:, discount:, tax:, tip:, duration:, total:
|
62
|
+
new id:, scheduled_on:, price:, discount:, tax:, tip:, duration:, total:, route_id:
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|