lockstep_rails 0.3.80 → 0.3.82
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/lockstep/attachment.rb +5 -0
- data/app/models/lockstep/invoice.rb +1 -0
- data/app/platform_api/schema/invoice.rb +34 -33
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2997575ae530a9c521267d45b2d616d15bd7124a7556508889632cab5f4a8b1a
|
4
|
+
data.tar.gz: 9e183366218221c4ab8089638bd62d34b07ff15fd8becd0c626bb514fcda3e6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fc08388526dd7935c7c0d10c641d5a4fb874c2c9a4736f26c90417d93d02900e377284f8caf8bdf1df02426f09ee264bcec9f8f358d8ca2a0c2960528d157a7
|
7
|
+
data.tar.gz: f4260a94d65309281322191b9ce1575fb98639b8f5ef06bdf4412bf77a95ad5f47bba7d15806a2e8b5efa03b98cb4723564b88060c7a903e3fcef4f61661f92d
|
@@ -6,6 +6,7 @@ class Lockstep::Invoice < Lockstep::ApiRecord
|
|
6
6
|
load_schema(Schema::Invoice)
|
7
7
|
|
8
8
|
belongs_to :connection, class_name: 'Lockstep::Connection', foreign_key: :customer_id
|
9
|
+
belongs_to :customer_primary_contact, {:class_name=>"Lockstep::Contact", :included=>true}
|
9
10
|
|
10
11
|
scope :einvoices, -> { where(is_e_invoice: true).include_object(:customer, :lines, :attachments) }
|
11
12
|
scope :received_einvoices, -> { einvoices.where(invoice_type_code: 'AP Invoice') }
|
@@ -5,17 +5,17 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
-
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
-
#
|
8
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
+
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
14
14
|
field :group_key
|
15
15
|
|
16
|
-
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
17
|
-
# added to the Lockstep platform.
|
18
|
-
#
|
16
|
+
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
17
|
+
# added to the Lockstep platform.
|
18
|
+
#
|
19
19
|
# For the ID of this record in its originating financial system, see `ErpKey`.
|
20
20
|
# @type: string
|
21
21
|
# @format: uuid
|
@@ -31,23 +31,23 @@ end
|
|
31
31
|
# @format: uuid
|
32
32
|
field :customer_id
|
33
33
|
|
34
|
-
# The unique ID of this record as it was known in its originating financial system.
|
35
|
-
#
|
36
|
-
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
37
|
-
# set to the original primary key number of the record as it was known in the originating financial
|
38
|
-
# system. If this record was not imported, this value will be `null`.
|
39
|
-
#
|
34
|
+
# The unique ID of this record as it was known in its originating financial system.
|
35
|
+
#
|
36
|
+
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
37
|
+
# set to the original primary key number of the record as it was known in the originating financial
|
38
|
+
# system. If this record was not imported, this value will be `null`.
|
39
|
+
#
|
40
40
|
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
41
41
|
# @type: string
|
42
42
|
field :erp_key
|
43
43
|
|
44
|
-
# The "Purchase Order Code" is a code that is sometimes used by companies to refer to the original PO
|
45
|
-
# that was sent that caused this invoice to be written. If a customer sends a purchase order to a vendor,
|
44
|
+
# The "Purchase Order Code" is a code that is sometimes used by companies to refer to the original PO
|
45
|
+
# that was sent that caused this invoice to be written. If a customer sends a purchase order to a vendor,
|
46
46
|
# the vendor can then create an invoice and refer back to the originating purchase order using this field.
|
47
47
|
# @type: string
|
48
48
|
field :purchase_order_code
|
49
49
|
|
50
|
-
# An additional reference code that is sometimes used to identify this invoice.
|
50
|
+
# An additional reference code that is sometimes used to identify this invoice.
|
51
51
|
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
52
52
|
# @type: string
|
53
53
|
field :reference_code
|
@@ -60,20 +60,20 @@ end
|
|
60
60
|
# @type: string
|
61
61
|
field :salesperson_name
|
62
62
|
|
63
|
-
# A code identifying the type of this invoice.
|
64
|
-
#
|
65
|
-
# Recognized Invoice types are:
|
66
|
-
# * `AR Invoice` - Represents an invoice sent by Company to the Customer
|
67
|
-
# * `AP Invoice` - Represents an invoice sent by Vendor to the Company
|
68
|
-
# * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
|
63
|
+
# A code identifying the type of this invoice.
|
64
|
+
#
|
65
|
+
# Recognized Invoice types are:
|
66
|
+
# * `AR Invoice` - Represents an invoice sent by Company to the Customer
|
67
|
+
# * `AP Invoice` - Represents an invoice sent by Vendor to the Company
|
68
|
+
# * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
|
69
69
|
# * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company
|
70
70
|
# @type: string
|
71
71
|
field :invoice_type_code
|
72
72
|
|
73
|
-
# A code identifying the status of this invoice.
|
74
|
-
#
|
75
|
-
# Recognized Invoice status codes are:
|
76
|
-
# * `Open` - Represents an invoice that is considered open and needs more work to complete
|
73
|
+
# A code identifying the status of this invoice.
|
74
|
+
#
|
75
|
+
# Recognized Invoice status codes are:
|
76
|
+
# * `Open` - Represents an invoice that is considered open and needs more work to complete
|
77
77
|
# * `Closed` - Represents an invoice that is considered closed and resolved
|
78
78
|
# @type: string
|
79
79
|
field :invoice_status_code
|
@@ -87,7 +87,7 @@ end
|
|
87
87
|
# @type: string
|
88
88
|
field :workflow_status_notes
|
89
89
|
|
90
|
-
# A code identifying the terms given to the purchaser. This field is imported directly from the originating
|
90
|
+
# A code identifying the terms given to the purchaser. This field is imported directly from the originating
|
91
91
|
# financial system and does not follow a specified format.
|
92
92
|
# @type: string
|
93
93
|
field :terms_code
|
@@ -135,7 +135,7 @@ end
|
|
135
135
|
# @format: date
|
136
136
|
field :posted_date
|
137
137
|
|
138
|
-
# The date when the invoice was closed and finalized after completion of all payments and delivery of all products and
|
138
|
+
# The date when the invoice was closed and finalized after completion of all payments and delivery of all products and
|
139
139
|
# services.
|
140
140
|
# @type: string
|
141
141
|
# @format: date
|
@@ -186,9 +186,9 @@ end
|
|
186
186
|
# @format: uuid
|
187
187
|
field :modified_user_id
|
188
188
|
|
189
|
-
# The AppEnrollmentId of the application that imported this record. For accounts
|
190
|
-
# with more than one financial system connected, this field identifies the originating
|
191
|
-
# financial system that produced this record. This value is null if this record
|
189
|
+
# The AppEnrollmentId of the application that imported this record. For accounts
|
190
|
+
# with more than one financial system connected, this field identifies the originating
|
191
|
+
# financial system that produced this record. This value is null if this record
|
192
192
|
# was not loaded from an external ERP or financial system.
|
193
193
|
# @type: string
|
194
194
|
# @format: uuid
|
@@ -254,15 +254,15 @@ end
|
|
254
254
|
# @format: date-time
|
255
255
|
field :source_modified_date, Types::Params::DateTime
|
256
256
|
|
257
|
-
# The Company associated to this invoice.
|
257
|
+
# The Company associated to this invoice.
|
258
258
|
# To retrieve this item, specify `Company` in the "Include" parameter for your query.
|
259
259
|
field :company
|
260
260
|
|
261
|
-
# The Customer associated to the invoice customer
|
261
|
+
# The Customer associated to the invoice customer
|
262
262
|
# To retrieve this item, specify `Customer` in the "Include" parameter for your query.
|
263
263
|
field :customer
|
264
264
|
|
265
|
-
# The Contact associated to the invoice customer
|
265
|
+
# The Contact associated to the invoice customer
|
266
266
|
# To retrieve this item, specify `Customer` in the "Include" parameter for your query.
|
267
267
|
field :customer_primary_contact
|
268
268
|
|
@@ -280,6 +280,7 @@ end
|
|
280
280
|
belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
281
281
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
282
282
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
283
|
+
belongs_to :customer_primary_contact, {:class_name=>"Lockstep::Contact", :included=>true}
|
283
284
|
|
284
285
|
has_many :workflow_statuses, {:class_name=>"Schema::InvoiceWorkflowStatusHistory", :included=>true}
|
285
286
|
has_many :addresses, {:class_name=>"Schema::InvoiceAddress", :included=>true}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockstep_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.82
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vivek AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|