lockstep_rails 0.3.71 → 0.3.72

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: d917ee0f2d4b07dd2d13151701c17c42bc77a61f95363e18fb62480c5b51c59e
4
+ data.tar.gz: bce93413a0d1b60decdb69dc137c323555dd0a272992ecc43260ee84831bc2d7
5
5
  SHA512:
6
- metadata.gz: 0cbd0d8c4f30a677fad4ecacec43e604142ea704bece161b3134dabff779ee21441a7ae7a04b61333684abbe116d71daa84e7a5b5ead07fb4d0780aed5375fb5
7
- data.tar.gz: ac1b421df458023a385816388aab3fb3b09d14c2dfb4aa081a6721b6db827dcfd36001e2fc8e103b323ac7ef562e6fdd12106850c53ccc581ba53d05f36ebf60
6
+ metadata.gz: 47831ddf735b0510a5e63b31aeb2f4a249155463f738d68084239d63e9e83318666394210f3bb5aa2765bd3d520197b508ee1818fe54fd7a1e72169e9d0bc986
7
+ data.tar.gz: 8b6a4ca48837595396e0d5e9cedf6a530b5b3143f6f89547804ce0130676b525f78ee3b7409971274f04dbc9d55a980ba5c23bf523eb0593d660f97f47974b29
@@ -175,4 +175,4 @@ module Lockstep
175
175
  block.call
176
176
  end
177
177
  end
178
- end
178
+ 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"}