mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-18 04:39:14 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user