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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddacef947d1ed34adf55183aad06872f45fc6d7b74e8ff2cc78ed3d6824d32f9
4
- data.tar.gz: 1e79ee1495cf7730510f9a1e9ca2b9de68c2ac0bbd99d92c69c4cc6d1504efe3
3
+ metadata.gz: 0fcb46b4df1534d7fa736686ffbedf749a1a578aec9f7c187abf6217193ce772
4
+ data.tar.gz: ba6d8d38b3ae0de5f5df13dcded545da3d97106aa8c8b8f6b86f21260ebf78cc
5
5
  SHA512:
6
- metadata.gz: 0cbd0d8c4f30a677fad4ecacec43e604142ea704bece161b3134dabff779ee21441a7ae7a04b61333684abbe116d71daa84e7a5b5ead07fb4d0780aed5375fb5
7
- data.tar.gz: ac1b421df458023a385816388aab3fb3b09d14c2dfb4aa081a6721b6db827dcfd36001e2fc8e103b323ac7ef562e6fdd12106850c53ccc581ba53d05f36ebf60
6
+ metadata.gz: 7dfe1a0ff3b7404ab7b32434045ab8a0560aef807f31b2650054a6aa2d38d237983b153e9f12dc496efcf3769ec14772a07d755153c002d501b6ec600611f0ff
7
+ data.tar.gz: 10712af1f384b8705373f2995f7faf31289f3914c488e0cf12eb71e46f31134dfa33a9389da2592b3e33aa468af1404fb5ecf454bd24674513025d269cedb440
@@ -175,4 +175,4 @@ module Lockstep
175
175
  block.call
176
176
  end
177
177
  end
178
- end
178
+ end
@@ -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 E-Invoice') }
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
- # Possible statuses for a Magic Link.
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"}