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 +4 -4
- data/app/presenters/renalware/letters/letter_presenter.rb +8 -1
- data/lib/renalware/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: 7f543b009735c78575b8f6d11ae1ee251b3ff595550118d737a6447891b887c4
|
4
|
+
data.tar.gz: 6ed8c8373cd2fc474cd3804156dba4b65c1e3c7dc7222330daa3724d00c4b011
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/renalware/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_type
|