|
|
@ -157,10 +157,6 @@ If nothing important is at point, return nil." |
|
|
|
(propertize "\n" 'face '(:underline t) |
|
|
|
'display '(space :align-to 999))))) |
|
|
|
|
|
|
|
(defun elbank-overview-account-group (account) |
|
|
|
"Return the group into which ACCOUNT is classified." |
|
|
|
(cadr (split-string (map-elt account 'id) "@"))) |
|
|
|
|
|
|
|
(defun elbank-overview--insert-accounts () |
|
|
|
"Insert all accounts informations in the current buffer." |
|
|
|
(seq-do (lambda (group) |
|
|
@ -168,7 +164,7 @@ If nothing important is at point, return nil." |
|
|
|
(seq-map #'elbank-overview--insert-account |
|
|
|
(cdr group)) |
|
|
|
(insert "\n")) |
|
|
|
(seq-group-by #'elbank-overview-account-group (map-elt elbank-data 'accounts)))) |
|
|
|
(seq-group-by #'elbank-account-group (map-elt elbank-data 'accounts)))) |
|
|
|
|
|
|
|
(defun elbank-overview--insert-bank (bankname) |
|
|
|
"Insert BANKNAME into the current buffer as a header." |
|
|
@ -196,9 +192,7 @@ If nothing important is at point, return nil." |
|
|
|
(insert " ")) |
|
|
|
(elbank--insert-amount balance (map-elt account 'currency)) |
|
|
|
(put-text-property (point-at-bol) (point-at-eol) 'elbank-account account) |
|
|
|
(put-text-property (point-at-bol) (point-at-eol) 'imenu-name (format "%s@%s" |
|
|
|
(elbank-overview-account-group account) |
|
|
|
(map-elt account 'label))) |
|
|
|
(put-text-property (point-at-bol) (point-at-eol) 'imenu-name (elbank-account-name account)) |
|
|
|
(insert "\n"))) |
|
|
|
|
|
|
|
(defun elbank-overview--insert-saved-reports () |
|
|
|