From 83e3fb98f741f77df2598daa5e18f17cb869193d Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 11 Dec 2015 13:15:24 +1100 Subject: [PATCH] Only display billable period adjustments where the amount in > 0 Rather than where the bill (which is calculated according to current settings) is > 0 --- app/views/admin/account/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/account/show.html.haml b/app/views/admin/account/show.html.haml index 09a6862d2e..00ba61cd1d 100644 --- a/app/views/admin/account/show.html.haml +++ b/app/views/admin/account/show.html.haml @@ -31,7 +31,7 @@ %th= t(:description) %th= t(:charge) - if order = invoice.order - - invoice.billable_periods.select{ |bp| bp.bill > 0}.each do |billable_period| + - invoice.billable_periods.select{ |bp| bp.adjustment.andand.amount.andand > 0}.each do |billable_period| %tr %td.text-center= "#{billable_period.begins_at.strftime("%d/%m/%Y")}" %td= billable_period.label