mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #12793 from rioug/12768_fix_bulk_coop_report
Fix bulk coop report
This commit is contained in:
@@ -10,7 +10,7 @@ module Reporting
|
||||
|
||||
def columns
|
||||
{
|
||||
supplier: :variant_product_supplier_name,
|
||||
supplier: :variant_supplier_name,
|
||||
product: :variant_product_name,
|
||||
bulk_unit_size: :variant_product_group_buy_unit_size_f,
|
||||
variant: :full_name,
|
||||
@@ -44,8 +44,8 @@ module Reporting
|
||||
|
||||
private
|
||||
|
||||
def variant_product_supplier_name(line_items)
|
||||
line_items.first.variant.product.supplier.name
|
||||
def variant_supplier_name(line_items)
|
||||
line_items.first.variant.supplier.name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -508,8 +508,6 @@ RSpec.describe '
|
||||
end
|
||||
|
||||
it "generating Bulk Co-op Supplier Report" do
|
||||
pending("S2 bug #12768")
|
||||
|
||||
click_link "Bulk Co-op Supplier Report"
|
||||
run_report
|
||||
|
||||
|
||||
Reference in New Issue
Block a user