Files
docker-finance/container/src/hledger-flow/accounts/capital-one/capital-one-credit-shared.rules
Aaron Fiore b1ed20a4c8 container: hledger-flow: finish uniform fiat subaccounts
- For consistency across *all* hledger-flow accounts/rules.
- For future-proofing legacy finance (as related to #163).
2025-08-29 13:09:54 -07:00

35 lines
1.2 KiB
Plaintext

# docker-finance | modern accounting for the power-user
#
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
fields date,date2,card,description,category,amount_,direction,subaccount
date-format %Y-%m-%d
account1 liabilities:capital-one:%subaccount:USD
amount %amount_ USD
comment card:%card, category:%category, direction:%direction
if %direction ^OUT$
amount -%amount_ USD
if %direction ^IN$
account2 equity:capital-one:%subaccount:withdrawal:USD
if %direction ^OUT$
account2 expenses:capital-one:%subaccount:%category:USD
# vim: sw=2 sts=2 si ai et