Hide invoice links in order edit page if invoices are disabled

This commit is contained in:
luisramos0
2019-06-19 15:53:17 +01:00
parent ec2f99a467
commit e33ce235c4

View File

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