2023-04-22 11:16:42 +02:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
2023-04-22 12:44:34 +02:00
|
|
|
path("list", views.TransactionListView.as_view(), name="transactions"),
|
2024-01-02 11:45:06 +01:00
|
|
|
path(
|
|
|
|
"history/<int:year>",
|
|
|
|
views.TransactionYearView.as_view(),
|
|
|
|
name="transaction_year",
|
|
|
|
),
|
2023-04-22 11:16:42 +02:00
|
|
|
path(
|
2023-04-22 12:44:34 +02:00
|
|
|
"history/<int:year>/<int:month>",
|
|
|
|
views.TransactionMonthView.as_view(),
|
|
|
|
name="transaction_month",
|
|
|
|
),
|
|
|
|
path("new", views.TransactionCreateView.as_view(), name="new_transaction"),
|
2024-12-31 19:39:55 +01:00
|
|
|
path("<transaction>", views.TransactionDetailView.as_view(), name="transaction"),
|
|
|
|
path(
|
|
|
|
"<transaction>/edit",
|
|
|
|
views.TransactionUpdateView.as_view(),
|
|
|
|
name="edit_transaction",
|
|
|
|
),
|
2023-04-22 12:44:34 +02:00
|
|
|
path(
|
|
|
|
"<transaction>/delete",
|
|
|
|
views.TransactionDeleteView.as_view(),
|
|
|
|
name="del_transaction",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"<transaction>/invoice/new",
|
2023-04-22 11:16:42 +02:00
|
|
|
views.InvoiceCreateView.as_view(),
|
|
|
|
name="new_invoice",
|
|
|
|
),
|
|
|
|
path(
|
2023-04-22 12:44:34 +02:00
|
|
|
"<transaction>/invoice/<invoice>",
|
2023-04-22 11:16:42 +02:00
|
|
|
views.InvoiceUpdateView.as_view(),
|
|
|
|
name="invoice",
|
|
|
|
),
|
|
|
|
path(
|
2023-04-22 12:44:34 +02:00
|
|
|
"<transaction>/invoice/<invoice>/delete",
|
2023-04-22 11:16:42 +02:00
|
|
|
views.InvoiceDeleteView.as_view(),
|
|
|
|
name="del_invoice",
|
|
|
|
),
|
|
|
|
]
|