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 +4 -4
- data/app/concepts/lockstep/client.rb +1 -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: d917ee0f2d4b07dd2d13151701c17c42bc77a61f95363e18fb62480c5b51c59e
|
4
|
+
data.tar.gz: bce93413a0d1b60decdb69dc137c323555dd0a272992ecc43260ee84831bc2d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47831ddf735b0510a5e63b31aeb2f4a249155463f738d68084239d63e9e83318666394210f3bb5aa2765bd3d520197b508ee1818fe54fd7a1e72169e9d0bc986
|
7
|
+
data.tar.gz: 8b6a4ca48837595396e0d5e9cedf6a530b5b3143f6f89547804ce0130676b525f78ee3b7409971274f04dbc9d55a980ba5c23bf523eb0593d660f97f47974b29
|
@@ -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"}
|