lockstep_rails 0.3.80 → 0.3.81

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c740a1a110fddf1f482502e7c081d422c3991234df99037799ac2912428de815
4
- data.tar.gz: dbba28340fff480f5a8a518cf377021121f755a1956c3fa8ba66bbdea4ae2866
3
+ metadata.gz: e4a0a8fcfeb52dc83211161d2fe71d5ce53561390768b31c67b2abf08cb8e0df
4
+ data.tar.gz: fd36e3e0141fbbdedc6af98c3ffe2d4458bdb0a20d464588248a9fc8f19debdb
5
5
  SHA512:
6
- metadata.gz: 164f1f2f60bb0461b483d810eaaf955a22373c8217ed7fb59e62cf35620a56f2735cc3800d6c88aac651cf53ec4c0323ea2b8733a27f8c5fcdf0970841d9c77c
7
- data.tar.gz: 5444e3005e27b38fa29a1e445b813df473b875e57ef0a649108dc2ff3bb57f5d7af8c3591331e347c423f556aa4a4f2a95dac1c1744b9d14bbf949fa94b8f295
6
+ metadata.gz: d7f2ca3ba51099fa9af80990bd466fd972a32c121bcfec419b4e2646c7a66e39197a9a863783b86647e1a536f4045144b84cbaf831c178e3bdd9992f15d0deab
7
+ data.tar.gz: f9954834dd6626637f7f8de5ca50cff82d39a17b4e7116d16004bcf8b9879d490fe7011323dacd008ceb14ac4281f974a88b83a14ade15b7302a519027171051
@@ -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}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LockstepRails
4
- VERSION = '0.3.80'
4
+ VERSION = '0.3.81'
5
5
  end
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.80
4
+ version: 0.3.81
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-02-29 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails