Only display billable period adjustments where the amount in > 0

Rather than where the bill (which is calculated according to current settings) is > 0
This commit is contained in:
Rob Harrington
2015-12-11 13:15:24 +11:00
parent bac4fcbd8f
commit 83e3fb98f7

View File

@@ -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