Skip to content

Commit

Permalink
v0.5.6.4 - Django Ledger Admin UI Multiple CoA Support (#189)
Browse files Browse the repository at this point in the history
* v0.5.6.4
ChartOfAccount 'locked' field renamed to active.
Support for Multiple Chart of Accounts on the UI.
New Chart of Account Model List View & Actions.
New CoA Card Component.
Root CoA Accounts now have more digits.

* v0.5.6.4

* v0.5.6.4
Activate/Deactivate Chart of Account Actions
CoA List View Highlights Default CoA.
Pipfile Update

* CoA Card Shows Slug

* EntityModel Account API BugFix
  • Loading branch information
elarroba committed Mar 22, 2024
1 parent 1bbdf93 commit 338b08d
Show file tree
Hide file tree
Showing 29 changed files with 1,155 additions and 442 deletions.
230 changes: 115 additions & 115 deletions Pipfile.lock

Large diffs are not rendered by default.

156 changes: 147 additions & 9 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@types/lodash": "^4.14.202",
"animate.css": "^4.1.1",
"axios": "^1.6.7",
"bulma": "^0.9.4",
"bulma": "^1.0.0",
"bulmaswatch": "^0.8.1",
"chart.js": "^2.9.4",
"json-schema": "^0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion django_ledger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
default_app_config = 'django_ledger.apps.DjangoLedgerConfig'

"""Django Ledger"""
__version__ = '0.5.6.3'
__version__ = '0.5.6.4'
__license__ = 'GPLv3 License'

__author__ = 'Miguel Sanda'
Expand Down
6 changes: 3 additions & 3 deletions django_ledger/admin/coa.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,21 @@ class ChartOfAccountsInLine(TabularInline):
show_change_link = True
fields = [
'name',
'locked',
'active',
'assign_as_default'
]


class ChartOfAccountsModelAdmin(ModelAdmin):
list_filter = [
'entity__name',
'locked'
'active'
]
list_display = [
'entity_name',
'name',
'slug',
'locked',
'active',
'account_model_count'
]
search_fields = [
Expand Down
2 changes: 1 addition & 1 deletion django_ledger/forms/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Meta:
'role_default',
'balance_type',
'active',
'locked'
'active'
]
widgets = {
'code': TextInput(attrs={
Expand Down
7 changes: 1 addition & 6 deletions django_ledger/forms/coa.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,14 @@ class ChartOfAccountsModelForm(ModelForm):
class Meta:
model = ChartOfAccountModel
fields = [
# 'slug',
'name',
'description'
]
labels = {
'slug': _('CoA ID'),
'name': _('Name'),
'description': _('Description'),
}
widgets = {
# 'slug': TextInput(attrs={
# 'class': DJANGO_LEDGER_FORM_INPUT_CLASSES
# }),
'name': TextInput(attrs={
'class': DJANGO_LEDGER_FORM_INPUT_CLASSES
}),
Expand All @@ -36,7 +31,7 @@ class Meta:
model = ChartOfAccountModel
fields = [
'name',
'locked'
'active'
]
labels = {
'name': _('Name'),
Expand Down
Loading

0 comments on commit 338b08d

Please sign in to comment.