 
   viewAppended:->
     super
+
     @addSubView editLink = new KDCustomHTMLView
       tagName      : 'a'
       partial      : 'View invoice'

      <span class='ttag #{data.status}'>#{data.status.toUpperCase()}</span>
    </td>
    <td class='ccard'>
      <span class='icon #{data.cardType.toLowerCase().replace(' ', '-')}'></span>...#{data.cardNumber.split("...")[1]}
    </td>
    """

    @removeAllItems()
    @showLazyLoader no

    items = []
    JPayment.fetchTransactions (err, transactions) =>
      warn err  if err

      for own paymentMethodId, transactionList of transactions
        for transaction in transactionList when transaction.amount > 0

          { status, createdAt, card, cardType, invoice
            cardNumber, owner, refundable, type } = transaction

          amount = @utils.formatMoney (transaction.amount + transaction.tax) / 100

          items.push {
            status
            cardType
            cardNumber
            owner
            refundable
            amount
            invoice
            currency : 'USD'
            paidVia  : card or ''
          }

      @instantiateListItems items
      @hideLazyLoader()

  loadView:->
