2013-06-12 10:47:54 +02:00
|
|
|
module SuppliersHelper
|
|
|
|
def associated_supplier_names(shared_supplier)
|
|
|
|
"(#{shared_supplier.suppliers.map(&:name).join(', ')})"
|
|
|
|
end
|
2014-05-21 21:24:03 +02:00
|
|
|
|
|
|
|
def shared_sync_method_collection(shared_supplier)
|
|
|
|
shared_supplier.shared_sync_methods.map do |m|
|
|
|
|
[t("suppliers.shared_supplier_methods.#{m}"), m]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|