From b1ed20a4c8868d7502d64e061889bb2de7da07ce Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Wed, 27 Aug 2025 14:49:25 -0700 Subject: [PATCH] container: hledger-flow: finish uniform fiat subaccounts - For consistency across *all* hledger-flow accounts/rules. - For future-proofing legacy finance (as related to #163). --- .../accounts/ally/ally-shared.rules | 18 +++++++++--------- .../capital-one/capital-one-bank-shared.rules | 10 +++++----- .../capital-one-credit-shared.rules | 8 ++++---- .../accounts/chase/chase-bank-shared.rules | 12 ++++++------ .../accounts/chase/chase-credit-shared.rules | 8 ++++---- .../discover/discover-bank-shared.rules | 12 ++++++------ .../discover/discover-credit-shared.rules | 8 ++++---- 7 files changed, 38 insertions(+), 38 deletions(-) diff --git a/container/src/hledger-flow/accounts/ally/ally-shared.rules b/container/src/hledger-flow/accounts/ally/ally-shared.rules index 289f844..9541d0a 100644 --- a/container/src/hledger-flow/accounts/ally/ally-shared.rules +++ b/container/src/hledger-flow/accounts/ally/ally-shared.rules @@ -1,6 +1,6 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC) +# 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 @@ -19,7 +19,7 @@ fields date,time,amount_,type,description,direction,subaccount date-format %Y-%m-%d -account1 assets:ally:%subaccount +account1 assets:ally:%subaccount:USD amount %amount_ USD comment time:%time, type:%type, direction:%direction @@ -29,33 +29,33 @@ if %direction ^OUT$ # Default assume equity if %direction ^IN$ - account2 equity:ally:%subaccount:withdrawal + account2 equity:ally:%subaccount:withdrawal:USD # Default assume expenses if %direction ^OUT$ - account2 expenses:ally:%subaccount + account2 expenses:ally:%subaccount:USD if %direction ^OUT$ & %description ^Wire Transfer$ - account2 expenses:ally:%subaccount:wire_transfer + account2 expenses:ally:%subaccount:wire_transfer:USD if %direction ^OUT$ & %description ^Wire Fee$ - account2 expenses:ally:%subaccount:wire_transfer:fees + account2 expenses:ally:%subaccount:wire_transfer:fees:USD # Ally internal transfer if %direction ^OUT$ & %description (^Internet transfer from|^Internet transfer to) - account2 equity:ally:%subaccount:deposit + account2 equity:ally:%subaccount:deposit:USD # Interest accounts if %direction ^IN$ & %description ^Interest Paid$ - account2 income:ally:%subaccount:interest + account2 income:ally:%subaccount:interest:USD # eCheck deposits if %direction ^IN$ & %description ^eCheck Deposit$ - account2 income:ally:%subaccount:echeck + account2 income:ally:%subaccount:echeck:USD # vim: sw=2 sts=2 si ai et diff --git a/container/src/hledger-flow/accounts/capital-one/capital-one-bank-shared.rules b/container/src/hledger-flow/accounts/capital-one/capital-one-bank-shared.rules index 5af983b..b1bfdb7 100644 --- a/container/src/hledger-flow/accounts/capital-one/capital-one-bank-shared.rules +++ b/container/src/hledger-flow/accounts/capital-one/capital-one-bank-shared.rules @@ -1,6 +1,6 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC) +# 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 @@ -18,7 +18,7 @@ fields card,description,date,type,amount_,balance_,direction,subaccount date-format %m/%d/%y -account1 assets:capital-one:%subaccount +account1 assets:capital-one:%subaccount:USD amount %amount_ USD comment card:%card, type:%type, direction:%direction @@ -27,14 +27,14 @@ if %direction ^OUT$ # Default as equity if %direction ^IN$ - account2 equity:capital-one:%subaccount:withdrawal + account2 equity:capital-one:%subaccount:withdrawal:USD # Default as equity if %direction ^OUT$ - account2 equity:capital-one:%subaccount:deposit + account2 equity:capital-one:%subaccount:deposit:USD if %direction ^IN$ & %description ^Monthly Interest Paid$ - account2 income:capital-one:%subaccount:interest + account2 income:capital-one:%subaccount:interest:USD # vim: sw=2 sts=2 si ai et diff --git a/container/src/hledger-flow/accounts/capital-one/capital-one-credit-shared.rules b/container/src/hledger-flow/accounts/capital-one/capital-one-credit-shared.rules index 80a8745..3a96209 100644 --- a/container/src/hledger-flow/accounts/capital-one/capital-one-credit-shared.rules +++ b/container/src/hledger-flow/accounts/capital-one/capital-one-credit-shared.rules @@ -1,6 +1,6 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC) +# 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 @@ -18,7 +18,7 @@ fields date,date2,card,description,category,amount_,direction,subaccount date-format %Y-%m-%d -account1 liabilities:capital-one:%subaccount +account1 liabilities:capital-one:%subaccount:USD amount %amount_ USD comment card:%card, category:%category, direction:%direction @@ -26,9 +26,9 @@ if %direction ^OUT$ amount -%amount_ USD if %direction ^IN$ - account2 equity:capital-one:%subaccount:withdrawal + account2 equity:capital-one:%subaccount:withdrawal:USD if %direction ^OUT$ - account2 expenses:capital-one:%subaccount:%category + account2 expenses:capital-one:%subaccount:%category:USD # vim: sw=2 sts=2 si ai et diff --git a/container/src/hledger-flow/accounts/chase/chase-bank-shared.rules b/container/src/hledger-flow/accounts/chase/chase-bank-shared.rules index 71948d5..a3eafc4 100644 --- a/container/src/hledger-flow/accounts/chase/chase-bank-shared.rules +++ b/container/src/hledger-flow/accounts/chase/chase-bank-shared.rules @@ -1,6 +1,6 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC) +# 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 @@ -18,7 +18,7 @@ fields details,date,description,amount_,type,balance_,code_,direction,subaccount date-format %m/%d/%Y -account1 assets:chase:%subaccount +account1 assets:chase:%subaccount:USD amount %amount_ USD comment details:%details, type:%type, direction:%direction @@ -27,23 +27,23 @@ if %code_ [a-z0-9] # Default IN as equity if %direction ^IN$ - account2 equity:chase:%subaccount:withdrawal + account2 equity:chase:%subaccount:withdrawal:USD # Income if %direction ^IN$ & %description CHECK DEPOSIT - account2 income:chase:%subaccount + account2 income:chase:%subaccount:USD if %direction ^OUT$ amount -%amount_ USD # Default OUT as expenses if %direction ^OUT$ - account2 expenses:chase:%subaccount + account2 expenses:chase:%subaccount:USD # Default ACH Debit as equity transfers if %direction ^OUT$ & %type ^ACH_DEBIT$ - account2 equity:chase:%subaccount:deposit + account2 equity:chase:%subaccount:deposit:USD # vim: sw=2 sts=2 si ai et diff --git a/container/src/hledger-flow/accounts/chase/chase-credit-shared.rules b/container/src/hledger-flow/accounts/chase/chase-credit-shared.rules index 4d6367f..cb6f28c 100644 --- a/container/src/hledger-flow/accounts/chase/chase-credit-shared.rules +++ b/container/src/hledger-flow/accounts/chase/chase-credit-shared.rules @@ -1,6 +1,6 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC) +# 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 @@ -21,16 +21,16 @@ date-format %m/%d/%Y description %description_ comment category:%category, type:%type -account1 liabilities:chase:%subaccount +account1 liabilities:chase:%subaccount:USD amount %amount_ USD # Default IN equity if %direction ^IN$ - account2 equity:chase:%subaccount:withdrawal + account2 equity:chase:%subaccount:withdrawal:USD # Default OUT expenses if %direction ^OUT$ amount -%amount_ USD - account2 expenses:chase:%subaccount:%category + account2 expenses:chase:%subaccount:%category:USD # vim: sw=2 sts=2 si ai et diff --git a/container/src/hledger-flow/accounts/discover/discover-bank-shared.rules b/container/src/hledger-flow/accounts/discover/discover-bank-shared.rules index e7ee60e..1747008 100644 --- a/container/src/hledger-flow/accounts/discover/discover-bank-shared.rules +++ b/container/src/hledger-flow/accounts/discover/discover-bank-shared.rules @@ -1,6 +1,6 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC) +# 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 @@ -18,30 +18,30 @@ fields date,description,type,amount_,balance_,direction,subaccount date-format %m/%d/%Y -account1 assets:discover:%subaccount +account1 assets:discover:%subaccount:USD amount %amount_ USD comment direction:%direction # Default IN equity if %direction ^IN$ - account2 equity:discover:%subaccount:withdrawal + account2 equity:discover:%subaccount:withdrawal:USD # Income if %direction ^IN$ & %description (^Check Deposit$|^Early Pay ACH) - account2 income:discover:%subaccount + account2 income:discover:%subaccount:USD if %direction ^OUT$ amount -%amount_ USD # Default OUT as expenses if %direction ^OUT$ - account2 expenses:discover:%subaccount + account2 expenses:discover:%subaccount:USD # Default ACH Withdrawals as equity transfers if %direction ^OUT$ & %description ^ACH Withdrawal - account2 equity:discover:%subaccount:deposit + account2 equity:discover:%subaccount:deposit:USD # vim: sw=2 sts=2 si ai et diff --git a/container/src/hledger-flow/accounts/discover/discover-credit-shared.rules b/container/src/hledger-flow/accounts/discover/discover-credit-shared.rules index 96d7908..f513b13 100644 --- a/container/src/hledger-flow/accounts/discover/discover-credit-shared.rules +++ b/container/src/hledger-flow/accounts/discover/discover-credit-shared.rules @@ -1,6 +1,6 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC) +# 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 @@ -19,18 +19,18 @@ fields date,date2,description,amount_,type,direction,subaccount date-format %m/%d/%Y -account1 liabilities:discover:%subaccount +account1 liabilities:discover:%subaccount:USD amount %amount_ USD comment type:%type, direction:%direction # Default equity if %direction ^IN$ - account2 equity:discover:%subaccount:withdrawal:%type + account2 equity:discover:%subaccount:withdrawal:%type:USD # Default expenses if %direction ^OUT$ amount -%amount_ USD - account2 expenses:discover:%subaccount:%type + account2 expenses:discover:%subaccount:%type:USD # vim: sw=2 sts=2 si ai et