   pistachio:->
     product = @getData()
 
-    code  = product.planCode
-    title = product.title
-    price = (product.amount / 100).toFixed(2).toLocaleString()
+    planCode  = product.planCode
+    title     = product.title
+    price     = (product.amount / 100).toFixed(2)
 
     subscriptionType =
       if product.subscriptionType is 'single'

    @clientsButton = new KDButtonView
      title    : "View Buyers"
      callback : =>
        plan = @getData()
        plan.fetchSubscriptions (err, subs)->
          if err
            subs = []
          new KDNotificationView
            title: "This product has #{subs.length} buyer(s)."

    @deleteButton = new KDButtonView
      title    : "-"
      callback : =>
        @confirmDelete =>
          @getDelegate().emit "DeleteItem", code

  confirmDelete:(callback) ->
    deleteModal = new KDModalView

class GroupProductListItem extends KDListItemView

  constructor:(options,data)->
    super options, data

    { planCode } = @getData()

    codeCheck =
      """
      KD.remote.api.JPaymentSubscription.checkUserSubscription '#{planCode}', (err, subscriptions)->
        if not err and subscriptions.length > 0
          console.log "User is subscribed to the plan."
      """

    codeGet =
      """
      KD.remote.api.JPaymentPlan.fetchPlanByCode '#{planCode}', (err, plan)->
        if not err and plan
          plan.fetchSubscriptions (err, subs)->
            console.log "Subscribers:", subs
