muni-corn / silverfox

The double-entry plain-text accounting tool designed with budgeting in mind
GNU General Public License v3.0
6 stars 0 forks source link

Daily, monthly, weekly, yearly spending reports #15

Open muni-corn opened 4 years ago

muni-corn commented 4 years ago

This includes the ability to filter dates, set a start/end period, whateva

muni-corn commented 4 years ago

Maybe in this format?

April 2020 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    expenses:food          400
    expenses:electricity    30
    income:salary        -1000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          -570

May 2020
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    expenses:food          450
    expenses:electricity    30
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           480

Totals 
===============================
    expenses:food          850
    expenses:electricity    60
    income:salary        -1000
===============================
                           -90

or

April 2020 
~~~~~~~~~~~~~~~~~~~~~~~~~~
    expenses
        food          400
        electricity    30
    income
        salary      -1000
~~~~~~~~~~~~~~~~~~~~~~~~~~
                     -570

May 2020
~~~~~~~~~~~~~~~~~~~~~~~~~~
    expenses
        food          450
        electricity    30
~~~~~~~~~~~~~~~~~~~~~~~~~~
                      480

Totals 
==========================
    expenses
        food          850
        electricity    60
    income
        salary      -1000
==========================
                      -90

The benefit of this compared to a table (as hledger does) is that there is no extensive horizontal space needed.

muni-corn commented 4 years ago

The command line syntax for this would probably be:

mvelopes r -m -b 2020/04 -e 2020/05
muni-corn commented 4 years ago
mvelopes r

    -y, --yearly            Report yearly summaries.

    -m, --monthly           Report monthly summaries.

    -w, --weekly            Report weekly summaries.

    -d, --daily             Report daily summaries. (Maybe? Or just use `r` on its own?)

    -b, --begin             Optional. Beginning date to report from. Includes all transactions before end date if omitted.

    -e, --end               Optional. Ending date to report to. Includes all transactions after beginning date if omitted.

    -o, --other-accounts    Display income and expense accounts instead of asset and liability accounts
    -c, --categories
muni-corn commented 4 years ago

r on its own reports individual transactions, one per line, sort of like hledger:

 2020/06/24 * Groceries              assets:checking    -10

 2020/06/24 * Electricity bill       assets:checking    -30

 2020/06/24 * Salary                 assets:checking  +1000

 2020/06/24 * Bought Bitcoin         assets:checking   -500
                                     assets:crypto     +0.3 BTC

 2020/06/24 * Bought Ethereum        assets:checking   -200
                                     assets:crypto     +1.0 ETH
================================================================
                                                       +460
                                                       +0.3 BTC
                                                       +1.0 ETH

The date, status, and description go to the leftmost side of the window. The account and amount go on the right side. There are two spaces between the account column and amount column

When possible, mvelopes will display the asset or liability account associated with a transaction (unless -o is passed). If there is no asset or liability account, the first posting's account is displayed.