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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db369e138fd81a06777542fe77c48ac02e78afce689814c6e077e2d5dca7eb70
4
- data.tar.gz: 3bf2190e5199a568bba9dd26900193f589cc5260ebf4a042192f72e0154b340d
3
+ metadata.gz: 6d30ecbd0854168592005b06f14661ded4e48e61a8b4b4a181e652c0c3826cbc
4
+ data.tar.gz: 42506cd1c6268406fa3e7cb8802799905d5e10fc0ace73fd4982c7f8500cb9de
5
5
  SHA512:
6
- metadata.gz: c7c3b27cecbb229a85f3dd4bb68e78869ac4fd7a9d25973fad201660efd9ce7af79b834c9ca4c19011a9c379ea4abcb01ceb84721f777ff4fb65ff3d8cbdf305
7
- data.tar.gz: 470be08bf37435f36f12e31c7118f70545821f1a52357a9c7cc5e51143a50a73cff32b18497cbedb122d63fca021cabb1f2acfa27c62235c05f787ce8e8dcd5a
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.where(delayed_payment_purchase_ran_at: nil)
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.18.3'.freeze
2
+ VERSION = '6.18.4'.freeze
3
3
  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.3
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-14 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails