mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Renames product so it always appears first on the report results
This commit is contained in:
@@ -67,7 +67,8 @@ describe Reporting::Reports::OrdersAndFulfillment::OrderCycleSupplierTotals do
|
||||
|
||||
it "is summarised" do
|
||||
expect(report).to receive(:display_summary_row?).and_return(true)
|
||||
|
||||
# assures product appears first on report table
|
||||
variant.product.update!(name: "Alpha-Product #000")
|
||||
variant.product.update!(variant_unit: "weight")
|
||||
variant.update!(unit_value: 200) # grams
|
||||
item.update!(final_weight_volume: nil) # reset unit information
|
||||
|
||||
Reference in New Issue
Block a user