mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-12 23:27:48 +00:00
Update admin adjustments controller
This commit is contained in:
@@ -15,7 +15,11 @@ module Spree
|
||||
end
|
||||
|
||||
def collection
|
||||
parent.adjustments.eligible
|
||||
parent.adjustments.eligible | parent.shipment_adjustments.shipping
|
||||
end
|
||||
|
||||
def find_resource
|
||||
parent.all_adjustments.eligible.find(params[:id])
|
||||
end
|
||||
|
||||
# Choose a default tax rate to show on the edit form. The adjustment stores its included
|
||||
|
||||
@@ -323,7 +323,7 @@ feature '
|
||||
|
||||
scenario "editing shipping fees" do
|
||||
click_link "Adjustments"
|
||||
shipping_adjustment_tr_selector = "tr#spree_adjustment_#{order.adjustments.shipping.first.id}"
|
||||
shipping_adjustment_tr_selector = "tr#spree_adjustment_#{order.shipment_adjustments.first.id}"
|
||||
page.find("#{shipping_adjustment_tr_selector} td.actions a.icon-edit").click
|
||||
|
||||
fill_in "Amount", with: "5"
|
||||
|
||||
Reference in New Issue
Block a user