mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Ensure order association is set correctly when adding admin adjustments
This commit is contained in:
@@ -21,6 +21,7 @@ module Spree
|
||||
expect(a.label).to eq('Testing included tax')
|
||||
expect(a.amount).to eq(110)
|
||||
expect(a.included_tax).to eq(0)
|
||||
expect(a.order_id).to eq(order.id)
|
||||
end
|
||||
|
||||
it "calculates included tax when a tax rate is provided" do
|
||||
@@ -31,6 +32,7 @@ module Spree
|
||||
expect(a.label).to eq('Testing included tax')
|
||||
expect(a.amount).to eq(110)
|
||||
expect(a.included_tax).to eq(10)
|
||||
expect(a.order_id).to eq(order.id)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -47,6 +49,7 @@ module Spree
|
||||
expect(a.label).to eq('Testing included tax')
|
||||
expect(a.amount).to eq(110)
|
||||
expect(a.included_tax).to eq(0)
|
||||
expect(a.order_id).to eq(order.id)
|
||||
end
|
||||
|
||||
it "calculates included tax when a tax rate is provided" do
|
||||
@@ -57,6 +60,7 @@ module Spree
|
||||
expect(a.label).to eq('Testing included tax')
|
||||
expect(a.amount).to eq(110)
|
||||
expect(a.included_tax).to eq(10)
|
||||
expect(a.order_id).to eq(order.id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user