mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove Order #distribution_set? method
This commit is contained in:
@@ -571,10 +571,6 @@ module Spree
|
||||
save!
|
||||
end
|
||||
|
||||
def distribution_set?
|
||||
distributor && order_cycle
|
||||
end
|
||||
|
||||
def shipping_tax
|
||||
shipment_adjustments.reload.tax.sum(:amount)
|
||||
end
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
%dd#date_complete
|
||||
= pretty_time(@order.completed_at)
|
||||
|
||||
- if @order.distribution_set?
|
||||
- if @order.distributor && @order.order_cycle
|
||||
%nav.menu
|
||||
%ul
|
||||
- customer_details_classes = "active" if current == "Customer Details"
|
||||
|
||||
Reference in New Issue
Block a user