                                          :reconciled?
                                          :reconciliation-id
                                          :created-at
-                                         :updated-at)))
+                                         :updated-at
+                                         :reconciliation-status)))
         expected [{:transaction-date (t/local-date 2017 3 2)
                    :description "Sell 25 shares of AAPL at 15.000"
                    :action :credit

        _ (trading/sell storage-spec (-> context
                                         sale-attributes
                                         (assoc :shares 25M :value 375M)))
        gains-items (->> {:account-id (:id lt-capital-gains)}
                         (transactions/search-items storage-spec)
                         (map #(dissoc % :id
                                         :entity-id

                   :memo "Sell 100 shares of AAPL at 8.500"
                   :balance 150M
                   :index 0}]]
    (if-not (= expected gains-items)
      (pprint {:expected expected
               :actual gains-items
               :diff (diff expected gains-items)}))
    (is (= expected gains-items) "The capital loss account is credited the correct amount")))

; Selling a commodity updates a lot record (FILO updates the most recent, FIFO updates the oldest)
