36 lines
1.7 KiB
Python
36 lines
1.7 KiB
Python
from django.urls import path
|
|
|
|
from apps.finance.views import (
|
|
ExpenseCreateView,
|
|
ExpenseDeleteView,
|
|
ExpenseListView,
|
|
InvoiceCreateView,
|
|
InvoiceDeleteView,
|
|
InvoiceDetailView,
|
|
InvoiceListView,
|
|
InvoiceUpdateView,
|
|
PaymentCreateView,
|
|
PaymentDeleteView,
|
|
PaymentListView,
|
|
TeamPaymentCreateView,
|
|
TeamPaymentDeleteView,
|
|
TeamPaymentListView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("finance/invoices/", InvoiceListView.as_view(), name="invoice_list"),
|
|
path("finance/invoices/create/", InvoiceCreateView.as_view(), name="invoice_create"),
|
|
path("finance/invoices/<int:pk>/", InvoiceDetailView.as_view(), name="invoice_detail"),
|
|
path("finance/invoices/<int:pk>/edit/", InvoiceUpdateView.as_view(), name="invoice_edit"),
|
|
path("finance/invoices/<int:pk>/delete/", InvoiceDeleteView.as_view(), name="invoice_delete"),
|
|
path("finance/payments/", PaymentListView.as_view(), name="payment_list"),
|
|
path("finance/payments/create/", PaymentCreateView.as_view(), name="payment_create"),
|
|
path("finance/payments/<int:pk>/delete/", PaymentDeleteView.as_view(), name="payment_delete"),
|
|
path("finance/expenses/", ExpenseListView.as_view(), name="expense_list"),
|
|
path("finance/expenses/create/", ExpenseCreateView.as_view(), name="expense_create"),
|
|
path("finance/expenses/<int:pk>/delete/", ExpenseDeleteView.as_view(), name="expense_delete"),
|
|
path("finance/team-payments/", TeamPaymentListView.as_view(), name="team_payment_list"),
|
|
path("finance/team-payments/create/", TeamPaymentCreateView.as_view(), name="team_payment_create"),
|
|
path("finance/team-payments/<int:pk>/delete/", TeamPaymentDeleteView.as_view(), name="team_payment_delete"),
|
|
]
|