mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-17 00:07:24 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user