lib/skr/models/sku.rb in stockor-0.3.0 vs lib/skr/models/sku.rb in stockor-0.4.0

- old
+ new

@@ -52,9 +52,12 @@ scope :only_back_ordered, lambda{ | *args | with_qty_details.where("details.qty_on_order > details.qty_on_hand") }, export: true + def price + uoms.default.price + end # Rebuilding is sometimes needed for cases where the location's # allocation/on order/reserved counts get out of sync with the # SalesOrder counts. This forces recalculation of the cached values def rebuild!