Add comment

I decided to look into why this is so complicated, in case some of the complexity can be removed. It can't :(
This commit is contained in:
David Cook
2023-10-20 16:40:08 +11:00
parent 1534908895
commit ceb9d9af92

View File

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