refactor and styling change, add button logick, add i18n logic

This commit is contained in:
2012-09-17 14:28:00 +02:00
parent 17b3494033
commit 930e53e837
20 changed files with 316 additions and 55 deletions
+3 -4
View File
@@ -33,11 +33,10 @@ class Supplier
end
def active_lists(options = {})
return @active_lists if @active_lists
@tables ||= active_tables(options)
@tables.include_relation(:lists)
@active_lists = @tables.map(&:lists).flatten.select(&:active?)
return @active_lists if @active_lists.present?
@active_lists = List.active_for_supplier(id)
@active_lists.include_relations(table: :section, orders: {product_orders: :product})
@active_lists
end