 
   getConstructor = (category) ->
     KD.remote.api["JPayment#{ category.capitalize() }"]
+
+  fetchProducts: (category, callback) ->
+    KD.getGroup().fetchProducts category, callback
+
+  showAddProductsModal: (plan) ->
+
+    modal = new GroupPlanAddProductsModal {}, plan
+    modal.on 'ProductsAdded', -> debugger
+
+    @fetchProducts 'product', (err, products) ->
+      return  if KD.showError err
+
+      modal.setProducts products

      .on("EditRequested", handleEdit)

      .on "DeleteRequested", (data) ->
        confirmDelete data, ->
          konstructor.removeByCode data.planCode, handleResponse

      .on "AddProductsRequested", (data) ->
        modal = new GroupPlanAddProductsModal {}, data
        modal.on 'ProductsAdded', -> debugger

      .on "BuyersReportRequested", (data) ->
        debugger # needs to be implemented


    konstructor = getConstructor category

    do reload = =>
      @fetchProducts category, (err, products) ->
        view.setProducts category, products

    handleResponse = (err) ->
      return  if KD.showError err
