nk20/apps/treasury/urls.py

20 lines
929 B
Python
Raw Normal View History

2020-03-20 23:30:49 +00:00
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
from django.urls import path
2020-03-22 17:27:22 +00:00
from .views import InvoiceCreateView, InvoiceListView, InvoiceUpdateView, InvoiceRenderView, RemittanceListView,\
RemittanceCreateView, RemittanceUpdateView
2020-03-20 23:30:49 +00:00
app_name = 'treasury'
urlpatterns = [
2020-03-22 17:27:22 +00:00
path('invoice/', InvoiceListView.as_view(), name='invoice_list'),
2020-03-22 00:22:27 +00:00
path('invoice/create/', InvoiceCreateView.as_view(), name='invoice_create'),
path('invoice/<int:pk>/', InvoiceUpdateView.as_view(), name='invoice_update'),
path('invoice/render/<int:pk>/', InvoiceRenderView.as_view(), name='invoice_render'),
2020-03-22 17:27:22 +00:00
path('remittance/', RemittanceListView.as_view(), name='remittance_list'),
path('remittance/create/', RemittanceCreateView.as_view(), name='remittance_create'),
path('remittance/<int:pk>/', RemittanceUpdateView.as_view(), name='remittance_update'),
2020-03-20 23:30:49 +00:00
]