lib/skr/models/sku_loc.rb in stockor-0.1.9 vs lib/skr/models/sku_loc.rb in stockor-0.2

- old
+ new

@@ -74,10 +74,10 @@ end private def fire_after_save_events - fire_event(:qty_change) if qty_changed? + fire_pubsub_event(:qty_change) if qty_changed? end # Caches the qty of skus that are allocated to sales orders in the {#qty_allocated} field def update_so_qty( so_line=nil ) self.update_attributes({ qty_allocated: self.so_lines.open.allocated.eq_qty_allocated })