netsuite 0.4.7 → 0.4.8
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 +8 -8
- data/README.md +8 -0
- data/lib/netsuite/records/customer_deposit.rb +8 -12
- data/lib/netsuite/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzU4NWNkY2Y0MzllYWE4ODhkYzQ2OTRiYWM4N2QwZTNmMjhmOWIxZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDFiMjY3ZmI5NzYyOWQ3OTVkNDAxMzA1MDIwZjk2MTM1MjUwODFkMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTUzODZjM2QwMDNjNWE2NTdjMWMxNjYwYTA5ZmE0M2I5NTA1YWJkZGEwYjBk
|
10
|
+
NTIyNDBmY2Q0ODcwNjk1MmY0OWRjNGFkMjE2MTE3MDUzNzZjM2IwMWIzMzYy
|
11
|
+
OWI0NDZjOWU4MDY4Y2IwMzQzZjVkMTA4ZWMzY2E4NjhlYTE4ZTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Zjc2ZGU1OTU2MzhiZWM5NTlhOTA1NDEzNmNkOGE0YmNkNTUzYzhiYzI0MDIw
|
14
|
+
OWFlZTlmOTYyMmVhOTcxZDI2Y2FhNGYxZGViZTJiZjM1YWYyMTcwNjk3NDk0
|
15
|
+
ZTI2NzljOTNiNzY2YWM3ZGUyNDExYmE2MGE5M2QwNzNlZTA0NjY=
|
data/README.md
CHANGED
@@ -383,6 +383,14 @@ NetSuite::Records::CustomRecord.get_list(
|
|
383
383
|
).each do |record|
|
384
384
|
# do your thing...
|
385
385
|
end
|
386
|
+
|
387
|
+
# Adding a Customer Deposit example. The customer associated with the
|
388
|
+
# sales order would be linked to the deposit.
|
389
|
+
|
390
|
+
deposit = CustomerDeposit.new
|
391
|
+
deposit.sales_order = RecordRef.new(internal_id: 7279)
|
392
|
+
deposit.payment = 20
|
393
|
+
deposit.add
|
386
394
|
```
|
387
395
|
|
388
396
|
#### Non-standard Operations
|
@@ -1,13 +1,8 @@
|
|
1
1
|
module NetSuite
|
2
2
|
module Records
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
# deposit = CustomerDeposit.new
|
7
|
-
# deposit.sales_order = RecordRef.new(internal_id: 7279)
|
8
|
-
# deposit.payment = 20
|
9
|
-
# deposit.add
|
10
|
-
#
|
3
|
+
|
4
|
+
# https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/customerdeposit.html
|
5
|
+
|
11
6
|
class CustomerDeposit
|
12
7
|
include Support::Actions
|
13
8
|
include Support::RecordRefs
|
@@ -15,14 +10,15 @@ module NetSuite
|
|
15
10
|
include Support::Records
|
16
11
|
include Namespaces::TranCust
|
17
12
|
|
18
|
-
actions :add, :get, :upsert
|
19
13
|
|
20
|
-
|
21
|
-
|
14
|
+
actions :get, :get_list, :initialize, :add, :delete, :update, :upsert
|
15
|
+
|
16
|
+
fields :created_date, :last_modified_date, :status, :payment, :tran_date, :exchange_rate, :undep_funds, :memo,
|
17
|
+
:check_num, :klass, :currency_name, :is_recurring_payment
|
22
18
|
|
23
19
|
field :custom_field_list, CustomFieldList
|
24
20
|
|
25
|
-
record_refs :customer, :sales_order, :account, :department, :payment_method
|
21
|
+
record_refs :customer, :sales_order, :account, :department, :payment_method, :custom_form, :currency, :posting_period
|
26
22
|
|
27
23
|
attr_reader :internal_id
|
28
24
|
attr_accessor :external_id
|
data/lib/netsuite/version.rb
CHANGED