effective_cpd 1.4.7 → 1.4.8

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: 9543132d5f9889e73a0bd2955ea38fef007d229503aa25229721e6b8e7a14907
4
- data.tar.gz: 30940ca9dc3eac1898b3293eacad456cfc490895d2e21edd7a47a9e9a0adc3ce
3
+ metadata.gz: b3d7a598e697af490599b28a4a41ed90dbd14dbcca2536f0338bd5719ac7d61d
4
+ data.tar.gz: 5caeef24e8a9e7f7714e804b802bdeae0bbd279b06c0014339c11ad834706fed
5
5
  SHA512:
6
- metadata.gz: c3761c3654663e4fe88124f03fc5d01c12039013b47a44f5b30290798c78ade7d1efbd0fa4b1be4badac1d01680c255fc8f160b31964e0bd124664201d98de8d
7
- data.tar.gz: 56e597a9beffaafd3adb6d553c083beceb83fa4cf11e194c622e3612566f85b2c4602317efd7e9150783d7879d8a1b227293b31f4c624371f9131f1b671c657a
6
+ metadata.gz: 1cb5eccf8a74482a2b4042fbc02e22807114ff263ca265fd9c287c160a0f9325375ef5cf92c65a09ab64846b2e696b14bcb9481a7049db12de7974c15be4dd5f
7
+ data.tar.gz: 54ea80bfe7a910fd76b0532de17d69214def0d86f22dcb7fc6a278c53731546d9733b09b0d8fab4b681de98f5b55b1624950b50a33b4969a2e534e83383e3c6c
@@ -636,9 +636,11 @@ module EffectiveCpdAudit
636
636
  end
637
637
 
638
638
  def deadline_to_submit
639
+ return extension_date if extension_date.present?
640
+
639
641
  return nil unless cpd_audit_level&.days_to_submit.present?
640
642
 
641
- date = (extension_date || notification_date || created_at || Time.zone.now)
643
+ date = (notification_date || created_at || Time.zone.now)
642
644
  EffectiveResources.advance_date(date, business_days: cpd_audit_level.days_to_submit)
643
645
  end
644
646
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveCpd
2
- VERSION = '1.4.7'
2
+ VERSION = '1.4.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_cpd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
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: 2023-03-24 00:00:00.000000000 Z
11
+ date: 2023-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails