nk20/apps/treasury/urls.py

30 lines
1.6 KiB
Python
Raw Normal View History

# Copyright (C) 2018-2021 by BDE ENS Paris-Saclay
2020-03-20 23:30:49 +00:00
# SPDX-License-Identifier: GPL-3.0-or-later
from django.urls import path
2020-08-07 09:04:54 +00:00
from .views import InvoiceCreateView, InvoiceListView, InvoiceUpdateView, InvoiceDeleteView, InvoiceRenderView,\
RemittanceListView, RemittanceCreateView, RemittanceUpdateView, LinkTransactionToRemittanceView,\
UnlinkTransactionToRemittanceView, SogeCreditListView, SogeCreditManageView
2020-03-20 23:30:49 +00:00
app_name = 'treasury'
urlpatterns = [
2020-03-24 19:22:15 +00:00
# Invoice app paths
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'),
2020-08-07 09:04:54 +00:00
path('invoice/<int:pk>/delete/', InvoiceDeleteView.as_view(), name='invoice_delete'),
2020-03-22 00:22:27 +00:00
path('invoice/render/<int:pk>/', InvoiceRenderView.as_view(), name='invoice_render'),
2020-03-22 17:27:22 +00:00
2020-03-24 19:22:15 +00:00
# Remittance app paths
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-23 22:42:37 +00:00
path('remittance/link_transaction/<int:pk>/', LinkTransactionToRemittanceView.as_view(), name='link_transaction'),
path('remittance/unlink_transaction/<int:pk>/', UnlinkTransactionToRemittanceView.as_view(),
name='unlink_transaction'),
path('soge-credits/list/', SogeCreditListView.as_view(), name='soge_credits'),
path('soge-credits/manage/<int:pk>/', SogeCreditManageView.as_view(), name='manage_soge_credit'),
2020-03-20 23:30:49 +00:00
]