diff --git a/src/clj/auto_ap/graphql/ledger.clj b/src/clj/auto_ap/graphql/ledger.clj index 6d182a4c..ac231ac4 100644 --- a/src/clj/auto_ap/graphql/ledger.clj +++ b/src/clj/auto_ap/graphql/ledger.clj @@ -142,24 +142,12 @@ (->graphql {:balance-sheet-groupings (-> [] - (into (->> (get accounts "Assets") - (map (fn [[n accounts]] - {:name n - :grouping-type "Assets" - :accounts accounts} - )))) (into (->> (get accounts "Expenses") (map (fn [[n accounts]] {:name n :grouping-type "Expenses" :accounts accounts} - )))) - (into (->> (get accounts "Liabilities") - (map (fn [[n accounts]] - {:name n - :grouping-type "Liabilities" - :accounts accounts} )))))}))) #_(get-profit-and-loss nil {:client_id [:client/code "CBC"] diff --git a/src/cljs/auto_ap/views/pages/ledger/profit_and_loss.cljs b/src/cljs/auto_ap/views/pages/ledger/profit_and_loss.cljs index 9969891b..a536b52b 100644 --- a/src/cljs/auto_ap/views/pages/ledger/profit_and_loss.cljs +++ b/src/cljs/auto_ap/views/pages/ledger/profit_and_loss.cljs @@ -200,12 +200,8 @@ (if @(re-frame/subscribe [::loading]) [:div [:i.icon.fa.fa-spin.fa-spinner]] [:div - [:h2.title "Assets"] - [grouping @(re-frame/subscribe [::assets])] [:h2.title "Expenses"] - [grouping @(re-frame/subscribe [::expenses])] - [:h2.title "Liabilities"] - [grouping @(re-frame/subscribe [::liabilities])]]) + [grouping @(re-frame/subscribe [::expenses])]]) ])) {:component-will-mount #(re-frame/dispatch-sync [::params-change {:from-date (date->str (t/minus (local-now) (t/period :years 1)) standard) :to-date (date->str (local-now) standard)}]) }))