Browse Source

Differentiate elbank categories from the ones in boobank

custom-labels
Nicolas Petton 3 years ago
parent
commit
d19993c69e
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      elbank-boobank.el

+ 4
- 0
elbank-boobank.el View File

@ -71,6 +71,10 @@ If an account already exists with the same id as ACCOUNT, use
that account instead of the new ACCOUNT."
(let* ((account-to-use (or (elbank-account-with-id (map-elt account 'id))
account)))
;; Some banks add a category to transactions, which conflicts with elbank's
;; categories, so put the category in `bank-category' instead.
(map-put data 'bank-category (map-elt data 'category))
(map-put data 'category nil)
(cons (cons 'account account-to-use) data)))
(defun elbank--fetch-boobank-accounts ()


Loading…
Cancel
Save