effective_orders 6.19.0 → 6.19.1

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: 3879f534782ca13d9e41ecdc23919ab4b115e35ecfcff92ba36fe080129f64ec
4
- data.tar.gz: 548b7af6a30b01ff4def2f8f0d47d18fd08a571113308b87465ca5561d10e835
3
+ metadata.gz: fe4877e8b611ca4cf5aae18c2f43d0e62a6dc333e76634c74d098efe952199b6
4
+ data.tar.gz: 7fdb4b4fda03ea47a941a032ee320fff2a6f432fd452e596bb2cfae40ed04569
5
5
  SHA512:
6
- metadata.gz: 240a0c1162e876ffda52a2cc3278e23d4c032ec658790acac9f66765e7f9f6a911adefedd933fb7bf3237a2c296ff29ebee6c974fbaf7bb3f8c99b04d66b8159
7
- data.tar.gz: 6940a82ad6bdfb23d1dffa2fbe73d210a7cac872829ac16d59ef52a5c43216815815b95a4b97301d47061bef9144273a16768a55fa6c56b15e77777b5165be2e
6
+ metadata.gz: 35d1d862fc154790c9e03ab1e01cd679340ae2c6da181cb26c6206fbaa6d6e3d1788e2b98516ba204e4e575ad98b12331ce81db0c41f5883fab3ca6ce99d1c70
7
+ data.tar.gz: 468b756bce436cacd7e9132d126edff379f61991dc984cc1ac140dec93750459caa379aedd184c9c5f846770d2566ecf16639c0f2980baa7557acf8746e72c63
@@ -810,7 +810,7 @@ module Effective
810
810
 
811
811
  # Went from delayed to cheque
812
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)
813
+ assign_attributes(delayed_payment_intent: nil, delayed_payment_total: nil)
814
814
  end
815
815
 
816
816
  if current_user&.email.present?
@@ -2,9 +2,26 @@
2
2
  %h1.effective-heading= @page_title
3
3
 
4
4
  %p.effective-orders-page-content
5
- You have indicated that this order will be paid by #{@order.payment_provider}.
6
- Your order will not be considered purchased until we receive your payment.
7
- Please contact us at your earliest convenience.
5
+ - if @order.delayed? && @order.deferred? && @order.delayed_payment_provider?
6
+ %p
7
+ = succeed('.') do
8
+ - distance = distance_of_time_in_words(Time.zone.now, @order.delayed_payment_date.beginning_of_day)
9
+
10
+ The payment date for this order
11
+
12
+ - if @order.delayed_payment_date_upcoming?
13
+ is in #{distance} from now on #{@order.delayed_payment_date.strftime('%F')}
14
+ - elsif @order.delayed_payment_date_today?
15
+ was today
16
+ - else
17
+ was #{distance} ago on #{@order.delayed_payment_date.strftime('%F')}
18
+
19
+ %p Your existing #{@order.delayed_payment_method} will be charged on the payment date.
20
+
21
+ - elsif @order.deferred?
22
+ You have indicated that this order will be paid by #{@order.payment_provider}.
23
+ Your order will not be considered purchased until we receive your payment.
24
+ Please contact us at your earliest convenience.
8
25
 
9
26
  = render @order
10
27
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.19.0'.freeze
2
+ VERSION = '6.19.1'.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.19.0
4
+ version: 6.19.1
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-16 00:00:00.000000000 Z
11
+ date: 2025-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails