add: add cash transaction fodler model and crud for this model

This commit is contained in:
behruz-dev
2025-09-05 17:26:41 +05:00
parent 254a1678ac
commit 60328e9f51
7 changed files with 169 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
from django.urls import path, include
from core.apps.finance.views import cash_transaction as cash_views
from core.apps.finance.views import cash_transaction_folder as folder_views
urlpatterns = [
@@ -9,5 +10,13 @@ urlpatterns = [
path('list/', cash_views.CashTransactionListApiView.as_view()),
path('create/', cash_views.CashTransactionCreateApiView.as_view()),
]
))
)),
path('cash_transaction_folder/', include(
[
path('create/', folder_views.CashTransactionCreateApiView.as_view()),
path('list/', folder_views.CashTransactionFolderListApiView.as_view()),
path('<uuid:id>/delete/', folder_views.CashTransactionFolderDeleteApiView.as_view()),
path('<uuid:id>/update/', folder_views.CashTransactionFolderUpdateApiView.as_view()),
]
)),
]