mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Do not allow re-adding exchange
This commit is contained in:
@@ -15,10 +15,12 @@ angular.module('admin.orderCycles').factory('OrderCycle', ($resource, $window, $
|
||||
parseInt(exchange.enterprise_id) for exchange in @exchangesByDirection(direction)
|
||||
|
||||
novelSupplier: (enterprise) =>
|
||||
@exchangeIds('incoming').indexOf(enterprise.id) == -1
|
||||
id = enterprise?.id || parseInt(enterprise)
|
||||
@exchangeIds('incoming').indexOf(id) == -1
|
||||
|
||||
novelDistributor: (enterprise) =>
|
||||
@exchangeIds('outgoing').indexOf(enterprise.id) == -1
|
||||
id = enterprise?.id || parseInt(enterprise)
|
||||
@exchangeIds('outgoing').indexOf(id) == -1
|
||||
|
||||
exchangeSelectedVariants: (exchange) ->
|
||||
numActiveVariants = 0
|
||||
|
||||
Reference in New Issue
Block a user