adamcharnock / django-hordak

Double entry accounting in Django
http://django-hordak.readthedocs.io
MIT License
228 stars 55 forks source link

Create accounting-oriented database view on Legs table #120

Closed adamcharnock closed 6 days ago

adamcharnock commented 1 week ago

As per the discussion in #44 (comment, comment).

This will add the columns:

adamcharnock commented 1 week ago

I've just realised that the implementation here only works for leaf accounts. Either:

  1. Make it work with non-leaf accounts
  2. Show NULL balance for non-leaf accounts
adamcharnock commented 1 week ago

Relatedly, we now also have #126, which provides a db-level function for calculating account balances.

adamcharnock commented 6 days ago

Show NULL balance for non-leaf accounts

This is what I implemented in the end. I figured this would give the biggest bang for complexity/performance buck.