Files
openfoodnetwork/app/assets/javascripts/darkswarm/services/orders.js.coffee

8 lines
389 B
CoffeeScript

Darkswarm.factory 'Orders', (orders_by_distributor, currencyConfig, CurrentHub, Taxons, Dereferencer, visibleFilter, Matcher, Geo, $rootScope)->
new class Orders
constructor: ->
# Populate Orders.orders from json in page.
@orders_by_distributor = orders_by_distributor
@currency_symbol = currencyConfig.symbol
# Sorting by most orders (most recent/frequent?)