bxbrenden / gnucash-helper

GNU Affero General Public License v3.0
12 stars 0 forks source link

Add the ability to enter Split Transactions #23

Open bxbrenden opened 3 years ago

bxbrenden commented 3 years ago

Add the ability to enter Split Transactions

Story

As a user, I want the ability to enter transactions with multiple splits. For example, if I have a mortgage payment, the money will come from one single account like Assets:Checking, and the destination accounts may be many, for example Expenses:Escrow, Expenses:Interest and Liabilities:Mortgage. It would be nice to enter this as one transaction instead of 3, which is the only to do it currently.

Feature Request

Change the Enter a Transaction page (/entry) so that split transactions can be entered. Have a look at GnuCash's official docs on splits transactions vs simple transactions.

The web form will need to change and be more dynamic-- possibly something like a big plus sign :heavy_plus_sign: that allows an additional part of the transaction to be included. This will mean changing the way the gnucash_helper.add_transaction function works or may necessitate a secondary function. This feature might push the limits of the stock WTForms setup / Jinja2 templates.

bxbrenden commented 3 years ago

Couple of links that may or may not help:

https://stackoverflow.com/questions/28375565/add-input-fields-dynamically-with-wtforms

https://stackoverflow.com/questions/24296834/wtform-fieldlist-with-selectfield-how-do-i-render/57548509#57548509