Balance sheet has correct data, needs formatting.
This commit is contained in:
19
scratch-sessions/find_bad_expense_accounts.clj
Normal file
19
scratch-sessions/find_bad_expense_accounts.clj
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
(ns find-bad-expense-accounts)
|
||||||
|
|
||||||
|
(require '[auto-ap.expense-accounts :as ea])
|
||||||
|
|
||||||
|
(let [accounts (-> (set (filter #(= 0 (mod % 100)) (keys ea/expense-accounts)))
|
||||||
|
(disj 2200)
|
||||||
|
(disj 2300)
|
||||||
|
(disj 3100)
|
||||||
|
(disj 3200)
|
||||||
|
(disj 3400))]
|
||||||
|
|
||||||
|
(doseq [x accounts
|
||||||
|
:let [c (d/query {:query {:find ['(pull ?e [*])]
|
||||||
|
:in ['$ '?x]
|
||||||
|
:where ['[?e :invoice-expense-account/expense-account-id ?x]]}
|
||||||
|
:args [(d/db (d/connect uri)) x]})]]
|
||||||
|
|
||||||
|
(if (> (count c ) 0)
|
||||||
|
(clojure.pprint/pprint [x c]))))
|
||||||
@@ -128,8 +128,8 @@
|
|||||||
:requires [:auto-ap/convert-invoices]}
|
:requires [:auto-ap/convert-invoices]}
|
||||||
:auto-ap/add-yodlee-merchant2 {:txes add-general-ledger/add-yodlee-merchant :requires [:auto-ap/convert-transactions]}
|
:auto-ap/add-yodlee-merchant2 {:txes add-general-ledger/add-yodlee-merchant :requires [:auto-ap/convert-transactions]}
|
||||||
|
|
||||||
#_#_:auto-ap/bulk-load-invoice-ledger3 {:txes-fn `add-general-ledger/bulk-load-invoice-ledger :requires [:auto-ap/convert-transactions]}
|
:auto-ap/bulk-load-invoice-ledger3 {:txes-fn `add-general-ledger/bulk-load-invoice-ledger :requires [:auto-ap/convert-transactions]}
|
||||||
#_#_:auto-ap/bulk-load-transaction-ledger3 {:txes-fn `add-general-ledger/bulk-load-transaction-ledger :requires [:auto-ap/convert-transactions]}
|
:auto-ap/bulk-load-transaction-ledger3 {:txes-fn `add-general-ledger/bulk-load-transaction-ledger :requires [:auto-ap/convert-transactions]}
|
||||||
|
|
||||||
}]
|
}]
|
||||||
(println "Conforming database...")
|
(println "Conforming database...")
|
||||||
|
|||||||
@@ -153,16 +153,19 @@
|
|||||||
{:db/ident :account-type/asset}
|
{:db/ident :account-type/asset}
|
||||||
{:db/ident :account-type/equity}]
|
{:db/ident :account-type/equity}]
|
||||||
|
|
||||||
(mapv
|
(->> expense-accounts/chooseable-expense-accounts
|
||||||
(fn [[numeric {:keys [name location]}]]
|
(filter (fn [[numeric]]
|
||||||
(remove-nils
|
(not (#{0 2100 5800 9600 1300 8200 7400 8500 2400 8800 1400 2500 7200 1200 1600 1500 3300 9800 9200 2800 1100 5700 2600 9300 9500 8100 7500 7100 2700} numeric))))
|
||||||
{:account/type :account-type/expense
|
|
||||||
:account/numeric-code numeric
|
(mapv
|
||||||
:account/code (str numeric)
|
(fn [[numeric {:keys [name location]}]]
|
||||||
:account/name name
|
(remove-nils
|
||||||
:account/location location
|
{:account/type :account-type/expense
|
||||||
:account/account-set "default"}))
|
:account/numeric-code numeric
|
||||||
expense-accounts/chooseable-expense-accounts)])
|
:account/code (str numeric)
|
||||||
|
:account/name name
|
||||||
|
:account/location location
|
||||||
|
:account/account-set "default"}))))])
|
||||||
|
|
||||||
(defn add-general-ledger-fns [conn]
|
(defn add-general-ledger-fns [conn]
|
||||||
[[{:db/ident :replace-general-ledger
|
[[{:db/ident :replace-general-ledger
|
||||||
@@ -248,18 +251,21 @@
|
|||||||
invoice-expense-accounts)]))
|
invoice-expense-accounts)]))
|
||||||
|
|
||||||
(defn convert-transactions [conn]
|
(defn convert-transactions [conn]
|
||||||
(let [matched-transactions (d/query {:query {:find '[?transaction ?v]
|
(let [matched-transactions (d/query {:query {:find '[?transaction ?v ?amount]
|
||||||
:in '[$]
|
:in '[$]
|
||||||
:where ['[?transaction :transaction/payment ?payment]
|
:where ['[?transaction :transaction/payment ?payment]
|
||||||
|
'[?transaction :transaction/amount ?amount]
|
||||||
'[?payment :payment/invoices ?i]
|
'[?payment :payment/invoices ?i]
|
||||||
'[?i :invoice/vendor ?v]]}
|
'[?i :invoice/vendor ?v]]}
|
||||||
:args [(d/db (d/connect auto-ap.datomic/uri))]})]
|
:args [(d/db (d/connect auto-ap.datomic/uri))]})]
|
||||||
[(mapv
|
[(mapv
|
||||||
(fn [[transaction-id vendor-id]]
|
(fn [[transaction-id vendor-id amount]]
|
||||||
(remove-nils {:db/id transaction-id
|
(remove-nils {:db/id transaction-id
|
||||||
:transaction/vendor vendor-id
|
:transaction/vendor vendor-id
|
||||||
:transaction/location "A"
|
:transaction/location "A"
|
||||||
:transaction/account (:db/id (accounts/get-account-by-numeric-code-and-sets 2110 ["default"]))
|
:transaction/accounts [#:transaction-account {:account (:db/id (accounts/get-account-by-numeric-code-and-sets 2110 ["default"]))
|
||||||
|
:location "A"
|
||||||
|
:amount (Math/abs amount)}]
|
||||||
}))
|
}))
|
||||||
matched-transactions)]))
|
matched-transactions)]))
|
||||||
|
|
||||||
|
|||||||
@@ -66,17 +66,15 @@
|
|||||||
:bank_name {:type 'String}
|
:bank_name {:type 'String}
|
||||||
:yodlee_account_id {:type 'Int}}}
|
:yodlee_account_id {:type 'Int}}}
|
||||||
:balance_sheet_account
|
:balance_sheet_account
|
||||||
{:fields {
|
{:fields {:id {:type 'String}
|
||||||
:amount {:type 'String}
|
:amount {:type 'String}
|
||||||
|
:numeric_code {:type 'Int}
|
||||||
|
:account_type {:type :account_type}
|
||||||
:name {:type 'String}}}
|
:name {:type 'String}}}
|
||||||
|
|
||||||
:balance_sheet_grouping
|
|
||||||
{:fields {:accounts {:type '(list :balance_sheet_account)}
|
|
||||||
:name {:type 'String}
|
|
||||||
:grouping_type {:type 'String}}}
|
|
||||||
|
|
||||||
:balance_sheet
|
:balance_sheet
|
||||||
{:fields {:balance_sheet_groupings {:type '(list :balance_sheet_grouping)}}}
|
{:fields {:balance_sheet_accounts {:type '(list :balance_sheet_account)}
|
||||||
|
:comparable_balance_sheet_accounts {:type '(list :balance_sheet_account)}}}
|
||||||
|
|
||||||
:address
|
:address
|
||||||
{:fields {:street1 {:type 'String}
|
{:fields {:street1 {:type 'String}
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
(ns auto-ap.graphql.ledger
|
(ns auto-ap.graphql.ledger
|
||||||
(:require [auto-ap.datomic :refer [uri]]
|
(:require [auto-ap.datomic :refer [uri]]
|
||||||
[auto-ap.datomic.ledger :as l]
|
[auto-ap.datomic.ledger :as l]
|
||||||
|
[auto-ap.time :refer [parse iso-date]]
|
||||||
[auto-ap.graphql.utils :refer [->graphql <-graphql limited-clients]]
|
[auto-ap.graphql.utils :refer [->graphql <-graphql limited-clients]]
|
||||||
[clj-time.coerce :as coerce]
|
[clj-time.coerce :as coerce]
|
||||||
[clojure.string :as str]
|
[clojure.string :as str]
|
||||||
[datomic.api :as d]))
|
[clj-time.core :as time]
|
||||||
|
[datomic.api :as d]
|
||||||
|
[auto-ap.parse.templates :as t]))
|
||||||
|
|
||||||
(defn get-ledger-page [context args value]
|
(defn get-ledger-page [context args value]
|
||||||
(let [args (assoc args :id (:id context))
|
(let [args (assoc args :id (:id context))
|
||||||
@@ -15,6 +18,8 @@
|
|||||||
:count (count journal-entries)
|
:count (count journal-entries)
|
||||||
:start (:start args 0)
|
:start (:start args 0)
|
||||||
:end (+ (:start args 0) (count journal-entries))}))
|
:end (+ (:start args 0) (count journal-entries))}))
|
||||||
|
|
||||||
|
;; TODO a better way to do this might be to accumulate ALL credits and ALL debits, and then just do for credits: balance = credits - debits. and for debits balance = debits - credits
|
||||||
(defn credit-account? [account]
|
(defn credit-account? [account]
|
||||||
(or
|
(or
|
||||||
(#{:account-type/liability
|
(#{:account-type/liability
|
||||||
@@ -41,72 +46,51 @@
|
|||||||
(mapcat :journal-entry/line-items)
|
(mapcat :journal-entry/line-items)
|
||||||
(group-by :journal-entry-line/account)
|
(group-by :journal-entry-line/account)
|
||||||
(reduce-kv (fn [result account line-items]
|
(reduce-kv (fn [result account line-items]
|
||||||
(assoc result
|
;; TODO fix
|
||||||
account
|
(when-not (or (:bank-account/name account) (:account/name account))
|
||||||
{:name (or (:bank-account/name account) (:account/name account))
|
(println "WARNING " account line-items))
|
||||||
:amount (reduce + 0 (map
|
(conj result
|
||||||
(fn [line-item]
|
{:name (or (:bank-account/name account) (:account/name account))
|
||||||
(cond
|
:id (:db/id account)
|
||||||
(and (credit-account? account) (:journal-entry-line/debit line-item))
|
:numeric-code (or (:account/numeric-code account)
|
||||||
(- (:journal-entry-line/debit line-item))
|
(and (:bank-account/type account)
|
||||||
|
1100))
|
||||||
|
:account-type (or (:db/ident (:account/type account))
|
||||||
|
({:bank-account-type/check :asset
|
||||||
|
:bank-account-type/credit :liability}
|
||||||
|
(:db/ident (:bank-account/type account))))
|
||||||
|
:amount (reduce + 0 (map
|
||||||
|
(fn [line-item]
|
||||||
|
(cond
|
||||||
|
(and (credit-account? account) (:journal-entry-line/debit line-item))
|
||||||
|
(- (:journal-entry-line/debit line-item))
|
||||||
|
|
||||||
(and (credit-account? account) (:journal-entry-line/credit line-item))
|
(and (credit-account? account) (:journal-entry-line/credit line-item))
|
||||||
(:journal-entry-line/credit line-item)
|
(:journal-entry-line/credit line-item)
|
||||||
|
|
||||||
(and (debit-account? account) (:journal-entry-line/debit line-item))
|
(and (debit-account? account) (:journal-entry-line/debit line-item))
|
||||||
(:journal-entry-line/debit line-item)
|
(:journal-entry-line/debit line-item)
|
||||||
|
|
||||||
(and (debit-account? account) (:journal-entry-line/credit line-item))
|
(and (debit-account? account) (:journal-entry-line/credit line-item))
|
||||||
(- (:journal-entry-line/credit line-item))
|
(- (:journal-entry-line/credit line-item))
|
||||||
|
|
||||||
:else
|
:else
|
||||||
0))
|
0))
|
||||||
line-items))}))
|
line-items))}))
|
||||||
{})))
|
[])))
|
||||||
|
|
||||||
(defn get-balance-sheet [context args value]
|
(defn get-balance-sheet [context args value]
|
||||||
(let [args (assoc args :id (:id context))
|
(let [args (assoc args :id (:id context))
|
||||||
[results] (l/get-graphql {:client-id (:client_id args)
|
[results] (l/get-graphql {:client-id (:client_id args)
|
||||||
:date-before (coerce/to-date (:date args))
|
:date-before (coerce/to-date (:date args))
|
||||||
:count Integer/MAX_VALUE})
|
:count Integer/MAX_VALUE})
|
||||||
accounts (roll-up results)
|
|
||||||
accounts (reduce-kv
|
|
||||||
|
|
||||||
(fn [result account line-item]
|
[comparable-results] (l/get-graphql {:client-id (:client_id args)
|
||||||
(update-in result [(cond
|
:date-before (coerce/to-date (time/minus (parse (:date args) iso-date) (time/months 1)))
|
||||||
(expense-account? account)
|
:count Integer/MAX_VALUE})]
|
||||||
"Expenses"
|
|
||||||
|
|
||||||
(credit-account? account)
|
|
||||||
"Liabilities"
|
|
||||||
(debit-account? account)
|
|
||||||
"Assets")
|
|
||||||
|
|
||||||
(if (credit-account? account)
|
|
||||||
"Accounts Payable"
|
|
||||||
"1100 Cash and Bank Accounts" )
|
|
||||||
]
|
|
||||||
conj
|
|
||||||
line-item
|
|
||||||
))
|
|
||||||
{}
|
|
||||||
accounts)
|
|
||||||
]
|
|
||||||
(->graphql
|
(->graphql
|
||||||
{:balance-sheet-groupings
|
{:balance-sheet-accounts (roll-up results)
|
||||||
(-> []
|
:comparable-balance-sheet-accounts (roll-up comparable-results)})))
|
||||||
(into (->> (get accounts "Assets")
|
|
||||||
(map (fn [[n accounts]]
|
|
||||||
{:name n
|
|
||||||
:grouping-type "Assets"
|
|
||||||
:accounts accounts}
|
|
||||||
))))
|
|
||||||
(into (->> (get accounts "Liabilities")
|
|
||||||
(map (fn [[n accounts]]
|
|
||||||
{:name n
|
|
||||||
:grouping-type "Liabilities"
|
|
||||||
:accounts accounts}
|
|
||||||
)))))})))
|
|
||||||
|
|
||||||
|
|
||||||
(defn get-profit-and-loss [context args value]
|
(defn get-profit-and-loss [context args value]
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
decreasing? (< (:transaction/amount entity) 0.0)
|
decreasing? (< (:transaction/amount entity) 0.0)
|
||||||
credit-from-bank? decreasing?
|
credit-from-bank? decreasing?
|
||||||
debit-from-bank? (not decreasing?)]
|
debit-from-bank? (not decreasing?)]
|
||||||
(println "processing entity" entity)
|
|
||||||
(when (:transaction/vendor entity)
|
(when (:transaction/vendor entity)
|
||||||
(remove-nils
|
(remove-nils
|
||||||
{:journal-entry/source "transaction"
|
{:journal-entry/source "transaction"
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
(:require [auto-ap.subs :as subs]
|
(:require [auto-ap.subs :as subs]
|
||||||
[auto-ap.views.components.layouts :refer [side-bar-layout]]
|
[auto-ap.views.components.layouts :refer [side-bar-layout]]
|
||||||
[goog.string :as gstring]
|
[goog.string :as gstring]
|
||||||
|
[auto-ap.utils :refer [by]]
|
||||||
[auto-ap.views.pages.ledger.side-bar :refer [ledger-side-bar]]
|
[auto-ap.views.pages.ledger.side-bar :refer [ledger-side-bar]]
|
||||||
[auto-ap.views.utils :refer [date->str date-picker bind-field]]
|
[auto-ap.views.utils :refer [date->str date-picker bind-field local-now standard]]
|
||||||
[cljs-time.core :as t]
|
[cljs-time.core :as t]
|
||||||
[re-frame.core :as re-frame]))
|
[re-frame.core :as re-frame]))
|
||||||
|
|
||||||
@@ -13,14 +14,59 @@
|
|||||||
(-> db ::report)))
|
(-> db ::report)))
|
||||||
|
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
::assets
|
::accounts
|
||||||
(fn [db]
|
(fn [db [_ type]]
|
||||||
(->> db ::report :balance-sheet-groupings (filter (fn [{:keys [grouping-type]}] (= "Assets" grouping-type))))))
|
(->> db
|
||||||
|
::report
|
||||||
|
:balance-sheet-accounts
|
||||||
|
(map #(update % :amount js/parseFloat))
|
||||||
|
(filter (fn [{:keys [account-type]}]
|
||||||
|
(= type account-type)))
|
||||||
|
(sort-by :numeric-code))))
|
||||||
|
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
|
::accounts-by-id
|
||||||
|
(fn [db [_ type]]
|
||||||
|
(->> db
|
||||||
|
::report
|
||||||
|
:balance-sheet-accounts
|
||||||
|
(map #(update % :amount js/parseFloat))
|
||||||
|
(filter (fn [{:keys [account-type]}]
|
||||||
|
(= type account-type)))
|
||||||
|
(by :id))))
|
||||||
|
|
||||||
|
(re-frame/reg-sub
|
||||||
|
::comparable-accounts-by-id
|
||||||
|
(fn [db [_ type]]
|
||||||
|
(->> db
|
||||||
|
::report
|
||||||
|
:comparable-balance-sheet-accounts
|
||||||
|
(map #(update % :amount js/parseFloat))
|
||||||
|
(filter (fn [{:keys [account-type]}]
|
||||||
|
(= type account-type)))
|
||||||
|
(by :id))))
|
||||||
|
|
||||||
|
|
||||||
|
(def groupings
|
||||||
|
{:asset
|
||||||
|
[["1100 Cash and Bank Accounts" 1100 1199]
|
||||||
|
["1200 Accounts Receivable" 1200 1299]
|
||||||
|
["1300 Inventory" 1300 1399]
|
||||||
|
["1400 Prepaid Expenses" 1400 1499]
|
||||||
|
["1500 Property and Equipment" 1500 1599]
|
||||||
|
["1600 Intangible Assets" 1600 1699]]
|
||||||
|
:liability
|
||||||
|
[["2100 Accounts Payable" 2100 2399]
|
||||||
|
["2400 Accrued Expenses" 2400 2499]
|
||||||
|
["2500 Other Liabilities" 2500 2599]
|
||||||
|
["2600 Split Accounts" 2600 2699]
|
||||||
|
["2700 Current Portion of Long-Term Debt" 2700 2799]
|
||||||
|
["2800 Notes Payable" 2800 3000]]})
|
||||||
|
|
||||||
|
#_(re-frame/reg-sub
|
||||||
::liabilities
|
::liabilities
|
||||||
(fn [db]
|
(fn [db]
|
||||||
(->> db ::report :balance-sheet-groupings (filter (fn [{:keys [grouping-type]}] (= "Liabilities" grouping-type))))))
|
(->> db ::report :balance-sheet-accounts (filter (fn [{:keys [account-type]}] :liability)))))
|
||||||
|
|
||||||
(re-frame/reg-event-db
|
(re-frame/reg-event-db
|
||||||
::received
|
::received
|
||||||
@@ -44,40 +90,46 @@
|
|||||||
:query-obj {:venia/queries [[:balance-sheet
|
:query-obj {:venia/queries [[:balance-sheet
|
||||||
(assoc params
|
(assoc params
|
||||||
:client-id (:id @(re-frame/subscribe [::subs/client])))
|
:client-id (:id @(re-frame/subscribe [::subs/client])))
|
||||||
[[:balance-sheet-groupings [:grouping-type :name [:accounts [:name :amount]]]]]]]}
|
[[:balance-sheet-accounts [:name :amount :account-type :id :numeric-code]]
|
||||||
|
[:comparable-balance-sheet-accounts [:name :amount :account-type :id :numeric-code]]]]]}
|
||||||
:on-success [::received]}}))
|
:on-success [::received]}}))
|
||||||
|
|
||||||
(re-frame/reg-event-fx
|
(re-frame/reg-event-fx
|
||||||
::date-picked
|
::date-picked
|
||||||
(fn [cofx [_ _ date]]
|
(fn [cofx [_ _ date]]
|
||||||
(println "DATE" date)
|
|
||||||
|
|
||||||
{:dispatch [::params-change (assoc @(re-frame/subscribe [::params])
|
{:dispatch [::params-change (assoc @(re-frame/subscribe [::params])
|
||||||
:date
|
:date
|
||||||
date)]}))
|
date)]}))
|
||||||
|
|
||||||
(defn grouping [groupings]
|
(defn grouping [{:keys [header accounts comparable-accounts groupings]}]
|
||||||
|
|
||||||
[:table.table
|
(for [[grouping-name from to] groupings
|
||||||
(for [grouping groupings]
|
:let [matching-accounts (filter
|
||||||
(list
|
#(<= from (:numeric-code %) to)
|
||||||
[:tr [:td {:col-span "2"} "----" (:name grouping) "----"]]
|
accounts)]
|
||||||
(for [account (:accounts grouping)]
|
:when (seq matching-accounts)
|
||||||
|
]
|
||||||
[:tr
|
(list
|
||||||
[:td (:name account) ]
|
[:tr [:td "---" grouping-name "---"]
|
||||||
[:td.has-text-right (gstring/format "$%.2f" (:amount account))]]
|
[:td]
|
||||||
|
[:td]
|
||||||
)
|
[:td]
|
||||||
|
]
|
||||||
[:tr [:td "----" (:name grouping) "----"]
|
(for [account matching-accounts]
|
||||||
[:td.has-text-right
|
[:tr [:td (:name account)]
|
||||||
(->> grouping
|
[:td.has-text-right (gstring/format "$%.2f" (:amount account))]
|
||||||
:accounts
|
[:td.has-text-right (gstring/format "$%.2f" (:amount (get comparable-accounts (:id account)) 0))]
|
||||||
(map :amount)
|
[:td.has-text-right (gstring/format "$%.2f" (- (:amount account ) (:amount (get comparable-accounts (:id account)) 0)))]])
|
||||||
(map #(js/parseFloat %))
|
[:tr [:td "---" grouping-name "---"]
|
||||||
(reduce + 0)
|
[:td.has-text-right (gstring/format "$%.2f" (reduce + 0 (map :amount
|
||||||
(gstring/format "$%.2f" ))]]))])
|
matching-accounts))) ]
|
||||||
|
[:td.has-text-right (gstring/format "$%.2f" (reduce + 0 (map #(:amount (get comparable-accounts (:id %)) 0)
|
||||||
|
matching-accounts)))]
|
||||||
|
[:td.has-text-right (gstring/format "$%.2f" (reduce + 0
|
||||||
|
(map #(- (:amount % ) (:amount (get comparable-accounts (:id %)) 0))
|
||||||
|
matching-accounts)))]
|
||||||
|
[:td]
|
||||||
|
])))
|
||||||
|
|
||||||
(def balance-sheet-content
|
(def balance-sheet-content
|
||||||
(with-meta
|
(with-meta
|
||||||
@@ -100,12 +152,28 @@
|
|||||||
:event [::date-picked]
|
:event [::date-picked]
|
||||||
:popper-props (clj->js {:placement "right"})
|
:popper-props (clj->js {:placement "right"})
|
||||||
:subscription params}]]
|
:subscription params}]]
|
||||||
[:h2.title "Assets"]
|
[:table.table
|
||||||
[grouping @(re-frame/subscribe [::assets])]
|
(list
|
||||||
[:h2.title "Liabilities"]
|
[:tr [:td "Assets"]
|
||||||
[grouping @(re-frame/subscribe [::liabilities])]
|
[:td]
|
||||||
|
[:td]
|
||||||
|
[:td]]
|
||||||
|
(grouping {:accounts @(re-frame/subscribe [::accounts :asset])
|
||||||
|
:groupings (:asset groupings)
|
||||||
|
:comparable-accounts @(re-frame/subscribe [::comparable-accounts-by-id :asset])
|
||||||
|
:header "Assets"})
|
||||||
|
[:tr [:td "Liabilities"]
|
||||||
|
[:td]
|
||||||
|
[:td]
|
||||||
|
[:td]]
|
||||||
|
(grouping {:accounts @(re-frame/subscribe [::accounts :liability])
|
||||||
|
:groupings (:liability groupings)
|
||||||
|
:comparable-accounts @(re-frame/subscribe [::comparable-accounts-by-id :liability])
|
||||||
|
:header "Liabilities"}))]
|
||||||
|
#_[:h2.title "Liabilities"]
|
||||||
|
#_[grouping @(re-frame/subscribe [::liabilities])]
|
||||||
]))
|
]))
|
||||||
{:component-will-mount #(re-frame/dispatch-sync [::params-change {}]) }))
|
{:component-will-mount #(re-frame/dispatch-sync [::params-change {:date (date->str (local-now) standard)}]) }))
|
||||||
|
|
||||||
(defn balance-sheet-page []
|
(defn balance-sheet-page []
|
||||||
[side-bar-layout
|
[side-bar-layout
|
||||||
|
|||||||
Reference in New Issue
Block a user