mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-03 06:59:14 +00:00
Update shipping_category in /lib and /engines
This commit is contained in:
@@ -22,7 +22,6 @@ class SuppliedProductBuilder < DfcBuilder
|
||||
description: supplied_product.description,
|
||||
price: 0, # will be in DFC Offer
|
||||
primary_taxon: Spree::Taxon.first, # dummy value until we have a mapping
|
||||
shipping_category: DefaultShippingCategory.find_or_create,
|
||||
).tap do |product|
|
||||
QuantitativeValueBuilder.apply(supplied_product.quantity, product)
|
||||
end
|
||||
|
||||
@@ -68,7 +68,6 @@ module SampleData
|
||||
variant_unit: "weight",
|
||||
variant_unit_scale: 1,
|
||||
unit_value: 1,
|
||||
shipping_category: DefaultShippingCategory.find_or_create,
|
||||
tax_category_id: find_or_create_tax_category.id
|
||||
)
|
||||
product = Spree::Product.create_with(params).find_or_create_by!(name: params[:name])
|
||||
|
||||
Reference in New Issue
Block a user