Reduce restrictions for creating subscriptions

Allow the following variants:

* Variants of permitted producers
* Variants of hub
* Variants that are in outgoing exchanges where the hub is receiver
This commit is contained in:
Kristina Lim
2019-01-20 17:51:37 +08:00
parent 57f6a7a3b9
commit 929290fc77
11 changed files with 296 additions and 121 deletions

View File

@@ -22,6 +22,7 @@ angular.module("admin.utils").directive "variantAutocomplete", ($timeout) ->
q: term
distributor_id: scope.distributor_id
order_cycle_id: scope.order_cycle_id
eligible_for_subscriptions: scope.eligible_for_subscriptions
results: (data, page) ->
results: data
formatResult: (variant) ->