lockstep_rails 0.3.71 → 0.3.73
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/concepts/lockstep/client.rb +1 -1
- data/app/models/lockstep/connection.rb +2 -1
- data/app/models/lockstep/invoice.rb +3 -2
- data/app/platform_api/schema/company_magic_link_summary.rb +1 -1
- data/app/platform_api/swagger.json +11141 -8898
- 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: 0fcb46b4df1534d7fa736686ffbedf749a1a578aec9f7c187abf6217193ce772
|
4
|
+
data.tar.gz: ba6d8d38b3ae0de5f5df13dcded545da3d97106aa8c8b8f6b86f21260ebf78cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dfe1a0ff3b7404ab7b32434045ab8a0560aef807f31b2650054a6aa2d38d237983b153e9f12dc496efcf3769ec14772a07d755153c002d501b6ec600611f0ff
|
7
|
+
data.tar.gz: 10712af1f384b8705373f2995f7faf31289f3914c488e0cf12eb71e46f31134dfa33a9389da2592b3e33aa468af1404fb5ecf454bd24674513025d269cedb440
|
@@ -11,10 +11,11 @@ class Lockstep::Connection < Lockstep::ApiRecord
|
|
11
11
|
|
12
12
|
validates :company_name, presence: true
|
13
13
|
|
14
|
-
default_scope { where(company_type: %w[Customer Vendor Group Company]).or(where(company_type: nil)) }
|
14
|
+
default_scope { where(company_type: %w[Customer Vendor Group Company CompanyProfile]).or(where(company_type: nil)) }
|
15
15
|
|
16
16
|
scope :customers, -> { where(company_type: 'Customer') }
|
17
17
|
scope :vendors, -> { where(company_type: 'Vendor') }
|
18
18
|
scope :internal_connections, -> { where(company_type: 'Company') }
|
19
|
+
scope :company_profiles, -> { where(company_type: 'CompanyProfile') }
|
19
20
|
scope :company_type_null, -> { where(company_type: nil) }
|
20
21
|
end
|
@@ -7,6 +7,7 @@ class Lockstep::Invoice < Lockstep::ApiRecord
|
|
7
7
|
|
8
8
|
belongs_to :connection, class_name: 'Lockstep::Connection', foreign_key: :customer_id
|
9
9
|
|
10
|
-
scope :einvoices, -> { include_object(:customer, :lines) }
|
11
|
-
scope :received_einvoices, -> { einvoices.where(invoice_type_code: 'AP
|
10
|
+
scope :einvoices, -> { where(is_e_invoice: true).include_object(:customer, :lines) }
|
11
|
+
scope :received_einvoices, -> { einvoices.where(invoice_type_code: 'AP Invoice') }
|
12
|
+
scope :sent_einvoices, -> { einvoices.where(invoice_type_code: 'AR Invoice') }
|
12
13
|
end
|
@@ -83,7 +83,7 @@ end
|
|
83
83
|
# @format: uuid
|
84
84
|
field :latest_magic_link_id
|
85
85
|
|
86
|
-
#
|
86
|
+
# Status of the most recent magic link made for this company
|
87
87
|
field :latest_magic_link_status
|
88
88
|
|
89
89
|
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|