renalware-core 2.0.63 → 2.0.64

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: f61f781fe0dc02b33492af2c0007e8533192f9479042bb6966884a9e09cf78ee
4
- data.tar.gz: 496511b58dc7bd6e5229b0e5c8979d85b5df30300a3760ac086ced22043a6062
3
+ metadata.gz: 7f543b009735c78575b8f6d11ae1ee251b3ff595550118d737a6447891b887c4
4
+ data.tar.gz: 6ed8c8373cd2fc474cd3804156dba4b65c1e3c7dc7222330daa3724d00c4b011
5
5
  SHA512:
6
- metadata.gz: b7195cf7fbde424de5e8a79c973c8216dff8582ffcf9c72fe08ba483ad92bfb6a493d0f504ba400c6bca8e5079124dd1681f20f2b97522ffa182d71b06318751
7
- data.tar.gz: 11de42735fbd3daad0adde101af9f08ce730061e123f445f60918f53e5bc592a26dcd8d707d063c39df177df58cb5af844c79e15d57eb1ffc3ca3779ccf5f021
6
+ metadata.gz: 0fad1d755a7fef154aa5256d05f44ce2521d88da460bc52034daf78053ad1971901af7f5d4ae4019f10aba8299ea180e3475dbc7fe0391543d73961824edff5b
7
+ data.tar.gz: 3839ac94706e0c7df71351f97694254cf62a151e563f5c194e8e621693d5bb240aa309240fdde97c90bdb71898bc4094f7b1112452ffe01043cb74e77a1e653b
@@ -136,7 +136,14 @@ module Renalware
136
136
  def build_cc_recipients
137
137
  # Get CCs order by person_role: :desc so that gp floats above contacts
138
138
  persisted_ccs = __getobj__.cc_recipients.order(person_role: :desc)
139
- if draft? || pending_review?
139
+ # There is an issue here - if we are archiving the letter then at the point the
140
+ # archive html content is generated, the letter is signed but not yet approved.
141
+ # We need to change this so it is approved before this point. For now
142
+ # check if the letter is signed? which will indicate we are in the process of
143
+ # archiving - in which case we have already generated the complete list of
144
+ # letter_recipients so we don't need to use #determine_counterpart_ccs to derive
145
+ # missing ones.
146
+ if draft? || (pending_review? && !signed?)
140
147
  determine_counterpart_ccs + persisted_ccs
141
148
  else
142
149
  persisted_ccs
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renalware
4
- VERSION = "2.0.63"
4
+ VERSION = "2.0.64"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renalware-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.63
4
+ version: 2.0.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airslie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-21 00:00:00.000000000 Z
11
+ date: 2018-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_type