Fix bulk coop report

This commit is contained in:
Gaetan Craig-Riou
2024-03-18 13:33:40 +11:00
parent c1dc87ae21
commit fddfd0dbfb
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ module Reporting
[
{
order: [:bill_address],
variant: { product: :supplier }
variant: [:product, :supplier]
}
]
end

View File

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