Closed nitsujri closed 5 months ago
Patch coverage: 83.55%
and project coverage change: -0.48%
:warning:
Comparison is base (
79703ea
) 92.97% compared to head (40efe10
) 92.50%. Report is 1 commits behind head on master.
:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thank you for this @nitsujri. I can see the need to present a more true-to-accounting view of the transaction data. To this end I have implemented a database view in #120, which is available as a Django model. I still favour this approach as it requires fewer/no changes to the core functionality while still providing (IMHO) a majority of the benefits.
This view will be in Hordak 2.0.0
. If it still proves insufficient then we can revisit this.
I'm going to close this for now, but we can re-open it if work resumes.
Hi all this is my attempt at getting the ball rolling on a long term migration to DR/CR for Hordak.
Why
Reasons for changing the data model to match accounting practices are discussed elsewhere. https://github.com/adamcharnock/django-hordak/issues/44 https://github.com/adamcharnock/django-hordak/issues/59
Also, the function
accounting_transfer_to
, in plain english, states the direction of money transfer.FROM.accounting_transfer_to(TO)
. This perfectly matchesCR.accounting_transfer_to(DR)
.Currently
transfer_to
accounting_transfer_to
.Fields/Functions
Leg
Transaction
Potential Path Forward
transfer_to
. Change Balance, check_leg trigger, and templates to use accounting_amount.This is an extremely rough draft, but wanted to get feedback as early as possible.