    [:td.text-right (currency-format (:polarized-value item))]
    [:td.text-right (currency-format (:balance item))]])
 
-(defn- items-table []
+(defn- items-table
+  [{:keys [items]}]
   [:table.table.table-striped.table-hover
    [:thead
     [:tr

(defn- transform-transaction
  [{:keys [quantity
           other-account-id]
    :as quick-entry-trx}]
  (let [rename-map (if (or (and (> quantity 0)
                                (left-side? @account))
                           (and (< quantity 0)
                                (not (left-side? @account))))
                     {:account-id :debit-account-id
                      :other-account-id :credit-account-id}
                     {:account-id :credit-account-id

     [:th.col-sm-2.text-right "Amount"]
     [:th.col-sm-2.text-right "Balance"]]]
   [:tbody
    (if-let [items @items]
      (map item-row items)
      [:tr [:td {:colSpan 4} [:span.inline-status "Loading..."]]])]])

