mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix bulk coop report
This commit is contained in:
@@ -22,7 +22,7 @@ module Reporting
|
||||
[
|
||||
{
|
||||
order: [:bill_address],
|
||||
variant: { product: :supplier }
|
||||
variant: [:product, :supplier]
|
||||
}
|
||||
]
|
||||
end
|
||||
|
||||
@@ -122,7 +122,7 @@ module Reporting
|
||||
ship_address: create(:address))
|
||||
end
|
||||
let(:li2) do
|
||||
build(:line_item_with_shipment, product: create(:simple_product, supplier: s1))
|
||||
build(:line_item_with_shipment, variant: create(:variant, supplier: s1))
|
||||
end
|
||||
|
||||
before do
|
||||
@@ -144,7 +144,7 @@ module Reporting
|
||||
ship_address: create(:address))
|
||||
end
|
||||
let(:li2) do
|
||||
build(:line_item_with_shipment, product: create(:simple_product, supplier: s1))
|
||||
build(:line_item_with_shipment, variant: create(:variant, supplier: s1))
|
||||
end
|
||||
|
||||
before do
|
||||
|
||||
Reference in New Issue
Block a user