mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove unused method
This commit is contained in:
@@ -36,17 +36,6 @@ class Invoice
|
||||
Spree::Money.new(price_with_adjustments - ((included_tax + fee_tax) / quantity), currency:)
|
||||
end
|
||||
|
||||
# TODO seems useless
|
||||
def display_line_items_taxes(display_zero: true)
|
||||
if included_tax.positive?
|
||||
Spree::Money.new( included_tax, currency:)
|
||||
elsif added_tax.positive?
|
||||
Spree::Money.new( added_tax, currency:)
|
||||
elsif display_zero
|
||||
Spree::Money.new(0.00, currency:)
|
||||
end
|
||||
end
|
||||
|
||||
def display_line_item_tax_rates
|
||||
tax_rates.map { |tr| number_to_percentage(tr.amount * 100, precision: 1) }.join(", ")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user