Update shipping_category in /lib and /engines

This commit is contained in:
Matt-Yorkley
2023-07-15 17:26:00 +01:00
parent 5e0e60dfd6
commit a712eac333
2 changed files with 0 additions and 2 deletions

View File

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

View File

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