mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-07 22:46:06 +00:00
Hide invoice links in order edit page if invoices are disabled
This commit is contained in:
@@ -22,6 +22,7 @@ module Spree
|
||||
end
|
||||
|
||||
def invoice_links
|
||||
return [] unless Spree::Config[:enable_invoices?]
|
||||
invoice_links = []
|
||||
invoice_links << if @order.distributor.can_invoice?
|
||||
send_invoice_link_with_url
|
||||
|
||||
Reference in New Issue
Block a user