Can't seem to figure out of the link Transactions and Account correctly #272
Unanswered
nicoferreira90
asked this question in
Q&A
Replies: 2 comments
-
or could it be a bug on Django Ledger's frontend...? edit: it seems it was a frontend bug on Django Ledger's end, I fixed it by switching to a newer version |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @nicoferreira90 . The error you are getting is because you are missing the coa_slug key-word argument when resolving the account-detail url. Here's the url pattern from the url/accounts.py file: path('<slug:entity_slug>/<slug:coa_slug>/detail/<uuid:account_pk>/',
views.AccountModelDetailView.as_view(),
name='account-detail'), Change the url reverse match to the following and if the issue is resolved: <a href="{% url 'django_ledger:account-detail' entity_slug=tx_digest.entity_slug coa_slug=acc.coa_model.slug account_pk=acc.account_uuid %}"
class="dropdown-item has-text-success">{% trans 'Detail' %}</a> Alternatively you can use the <a href="acc.get_absolute_url" class="dropdown-item has-text-success">{% trans 'Detail' %}</a> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everybody. I guess there isn't any other better place to post this, so here it goes:
I'm working on a project where I'm trying to integrate pretty much every Django Ledger model:
I am getting an error though, when a Journal Entry is Posted and I try to access the Balance Sheet:
This anchor is the culprit:
If no Journal Entry is posted, it correctly takes me to an empty Ledger balance sheet.
I'm pretty sure I'm doing something wrong with regards to the connection between Transactions and Accounts. So far I can get the Transactions in the customer's (Taker) Ledger to correctly feed into the Global CoA's Account, but something seems broken at the Ledger level.
Any help would be very appreciated. Here is much of the code I'm working with:
(It's probably clear I don't entirely know what I'm doing. There's some logic for creating the Entity's Global CoA and the Accounts involved elsewhere, but I don't think that's where the problem lays)
Beta Was this translation helpful? Give feedback.
All reactions