mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
Adding schedules to Order Cycles interface
This commit is contained in:
@@ -80,3 +80,8 @@ angular.module("admin.resources").factory 'OrderCycles', ($q, $injector, OrderCy
|
||||
for shop, i in orderCycle.shops
|
||||
shop = Enterprises.enterprisesByID[shop.id]
|
||||
orderCycle.shops[i] = shop if shop?
|
||||
|
||||
linkToSchedules: (orderCycle) ->
|
||||
for schedule, i in orderCycle.schedules
|
||||
schedule = Schedules.byID[schedule.id]
|
||||
orderCycle.schedules[i] = schedule if schedule?
|
||||
|
||||
Reference in New Issue
Block a user