From ceb9d9af92ee83800d6cc96af2cc6f6e5505844b Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 20 Oct 2023 16:40:08 +1100 Subject: [PATCH] Add comment I decided to look into why this is so complicated, in case some of the complexity can be removed. It can't :( --- app/services/sets/product_set.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/sets/product_set.rb b/app/services/sets/product_set.rb index 0068a6b66a..23be044239 100644 --- a/app/services/sets/product_set.rb +++ b/app/services/sets/product_set.rb @@ -112,6 +112,7 @@ module Sets def create_variant(product, variant_attributes) return if variant_attributes.blank? + # 'You need to save the variant to create a stock item before you can set stock levels.' on_hand = variant_attributes.delete(:on_hand) on_demand = variant_attributes.delete(:on_demand)