Remove logic from OrderCycleDistributedProducts related to obsolete master variants in OCs, this is a condition that will never happen now since we ensure products always have a standard variants

A migration will be added as well to clean up any very old master variants available in order cycles
This commit is contained in:
luisramos0
2019-09-18 11:25:37 +01:00
parent 54c44c33eb
commit 95bc8fa984

View File

@@ -1,6 +1,5 @@
# Returns a (paginatable) AR object for the products or variants in stock for a given shop and OC.
# The stock-checking includes on_demand and stock level overrides from variant_overrides.
class OrderCycleDistributedProducts
def initialize(distributor, order_cycle)
@distributor = distributor