end of day commit

This commit is contained in:
2013-01-10 01:00:59 +01:00
parent b85bbf1aee
commit 87046c872c
23 changed files with 642 additions and 28 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ class Supplier
def active_lists(options = {})
return @active_lists if @active_lists.present?
@active_lists = List.active_for_supplier(id)
@active_lists = options[:section_id].present? ? List.active_for_supplier_and_section(self, options[:section_id]) : List.active_for_supplier(id)
@active_lists.include_relations(table: :section, orders: {product_orders: :product})
@active_lists
end