effective_orders 6.18.3 → 6.18.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/order.rb +7 -1
- data/lib/effective_orders/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: 6d30ecbd0854168592005b06f14661ded4e48e61a8b4b4a181e652c0c3826cbc
|
4
|
+
data.tar.gz: 42506cd1c6268406fa3e7cb8802799905d5e10fc0ace73fd4982c7f8500cb9de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc88b76583abd395fda539b6a237218f3e625fc88f83c878b0d0d71e114a2002c701aaf574bee9cc179a15fd6d24a9291a642bf66c407c8e729a5783a4fc0595
|
7
|
+
data.tar.gz: 215adf0b221c134a2925c52ed4312ed1daec375cd0977db3a82464fe35e7bc9dff5c16e613c635faf7191a42398c856a3d9b72eb3cba5ea2085525377109a5d6
|
@@ -160,7 +160,8 @@ module Effective
|
|
160
160
|
|
161
161
|
# Used by the rake effective_orders:purchase_delayed_orders task
|
162
162
|
scope :delayed_ready_to_purchase, -> {
|
163
|
-
delayed.deferred.delayed_payment_provider.delayed_payment_date_past
|
163
|
+
delayed.deferred.delayed_payment_provider.delayed_payment_date_past
|
164
|
+
.where(delayed_payment_purchase_ran_at: nil).where.not(delayed_payment_intent: nil)
|
164
165
|
}
|
165
166
|
|
166
167
|
# effective_reports
|
@@ -807,6 +808,11 @@ module Effective
|
|
807
808
|
deferred_by: (deferred_by.presence || current_user)
|
808
809
|
)
|
809
810
|
|
811
|
+
# Went from delayed to cheque
|
812
|
+
if delayed_payment? && !delayed_payment_provider?
|
813
|
+
assign_attributes(delayed_payment: false, delayed_payment_date: nil, delayed_payment_intent: nil, delayed_payment_total: nil)
|
814
|
+
end
|
815
|
+
|
810
816
|
if current_user&.email.present?
|
811
817
|
assign_attributes(email: current_user.email)
|
812
818
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.18.
|
4
|
+
version: 6.18.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|