Skip to content

Commit

Permalink
Merge pull request #1156 from sparc-request/jm-hide-services-feature-…
Browse files Browse the repository at this point in the history
…tweaks

JM - (SPARCRequest Step 2B & SPARCDashboard-Admin Edit) Hide Services…
  • Loading branch information
Stuart-Johnson committed Oct 17, 2017
2 parents 64d82a1 + 18064fc commit 2daebb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/assets/stylesheets/service_calendar.sass
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
/* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR*/
/* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/
.custom-pull-right
margin-left: 71%
margin-left: 75%
margin-bottom: 1%
margin-top: -6%

.btn-custom-green
color: green
Expand Down
6 changes: 4 additions & 2 deletions app/views/service_requests/show.xlsx.axlsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ wb.add_worksheet(name: "Review") do |sheet|

##### beginning of arms
if has_per_patient_per_visit_services
@service_request.arms.each do |arm|

arms_to_be_displayed = @display_all_services ? @service_request.arms : Arm.where(protocol: @service_request.protocol).joins(:line_items_visits).joins(:visits).where.not( "research_billing_qty = 0 and insurance_billing_qty = 0 and effort_billing_qty = 0" ).uniq

arms_to_be_displayed.each do |arm|
services_row = ["Selected Services", "CPT Code", "Order Code", "Notes"]
services_row << "Current Cost" if @admin_offset
services_row += ["Your Cost", "# of Subjects"]
Expand All @@ -118,7 +121,6 @@ wb.add_worksheet(name: "Review") do |sheet|

num_visits = arm.visit_count
visit_group_name_sizes = []

arm.visit_groups.each do |vg|
visit_group_name_sizes << vg.name.size
services_row << "#{vg.name}"
Expand Down

0 comments on commit 2daebb7

Please sign in to comment.