Added all the URL of the accounting application, using the dummy TODO view. Also applied the dummy TODO view to the URL that are not implemented yet.

This commit is contained in:
依瑪貓 2020-07-09 23:19:48 +08:00
parent a7ec80f066
commit 03d293d545

View File

@ -22,6 +22,7 @@
from django.urls import path, register_converter
from . import views
from mia_core import views as mia_core_views
class TransactionTypeConverter:
@ -43,8 +44,50 @@ urlpatterns = [
path("cash", views.cash_home, name="cash.home"),
path("cash/<str:subject_code>/<str:period_spec>",
views.CashReportView.as_view(), name="cash"),
path("cash-summary/<str:subject_code>",
mia_core_views.todo, name="cash-summary"),
path("ledger/<str:subject_code>/<str:period_spec>",
mia_core_views.todo, name="ledger"),
path("ledger-summary/<str:subject_code>",
mia_core_views.todo, name="ledger-summary"),
path("ledger/<str:subject_code>/<str:period_spec>",
mia_core_views.todo, name="ledger"),
path("ledger-summary/<str:subject_code>",
mia_core_views.todo, name="ledger-summary"),
path("journal/<str:period_spec>",
mia_core_views.todo, name="journal"),
path("trial-balance/<str:period_spec>",
mia_core_views.todo, name="trial-balance"),
path("income-statement/<str:period_spec>",
mia_core_views.todo, name="income-statement"),
path("balance-sheet/<str:period_spec>",
mia_core_views.todo, name="balance-sheet"),
path("search",
mia_core_views.todo, name="search"),
path("transactions/<txn-type:type>/create",
mia_core_views.todo, name="transactions.create"),
path("transactions/<txn-type:type>/store",
mia_core_views.todo, name="transactions.store"),
path("transactions/<txn-type:type>/<int:pk>",
views.CashReportView.as_view(), name="transactions.view"),
mia_core_views.todo, name="transactions.view"),
path("transactions/<txn-type:type>/<int:pk>/edit",
views.CashReportView.as_view(), name="transactions.edit"),
mia_core_views.todo, name="transactions.edit"),
path("transactions/<txn-type:type>/<int:pk>/update",
mia_core_views.todo, name="transactions.update"),
path("transactions/<int:pk>/delete",
mia_core_views.todo, name="transactions.delete"),
path("subjects",
mia_core_views.todo, name="subjects"),
path("subjects/create",
mia_core_views.todo, name="subjects.create"),
path("subjects/store",
mia_core_views.todo, name="subjects.store"),
path("subjects/<str:subject_code>",
mia_core_views.todo, name="subjects.view"),
path("subjects/<str:subject_code>/edit",
mia_core_views.todo, name="subjects.edit"),
path("subjects/<str:subject_code>/update",
mia_core_views.todo, name="subjects.update"),
path("subjects/<str:subject_code>/delete",
mia_core_views.todo, name="subjects.delete"),
]