Sith/accounting/urls.py

141 lines
4.1 KiB
Python
Raw Normal View History

# -*- coding:utf-8 -*
#
# Copyright 2023 © AE UTBM
# ae@utbm.fr / ae.info@utbm.fr
#
# This file is part of the website of the UTBM Student Association (AE UTBM),
# https://ae.utbm.fr.
#
# You can find the source code of the website at https://github.com/ae-utbm/sith3
#
# LICENSED UNDER THE GNU GENERAL PUBLIC LICENSE VERSION 3 (GPLv3)
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE
# OR WITHIN THE LOCAL FILE "LICENSE"
#
#
from django.urls import path
2016-04-20 01:01:14 +00:00
from accounting.views import *
urlpatterns = [
2016-08-24 17:50:22 +00:00
# Accounting types
path(
"simple_type/",
2018-10-04 19:29:19 +00:00
SimplifiedAccountingTypeListView.as_view(),
name="simple_type_list",
),
path(
"simple_type/create/",
2018-10-04 19:29:19 +00:00
SimplifiedAccountingTypeCreateView.as_view(),
name="simple_type_new",
),
path(
"simple_type/<int:type_id>/edit/",
2018-10-04 19:29:19 +00:00
SimplifiedAccountingTypeEditView.as_view(),
name="simple_type_edit",
),
2016-05-03 06:50:54 +00:00
# Accounting types
path("type/", AccountingTypeListView.as_view(), name="type_list"),
path("type/create/", AccountingTypeCreateView.as_view(), name="type_new"),
path(
"type/<int:type_id>/edit/",
2018-10-04 19:29:19 +00:00
AccountingTypeEditView.as_view(),
name="type_edit",
),
2016-04-20 01:01:14 +00:00
# Bank accounts
path("", BankAccountListView.as_view(), name="bank_list"),
path("bank/create", BankAccountCreateView.as_view(), name="bank_new"),
path(
"bank/<int:b_account_id>/",
2018-10-04 19:29:19 +00:00
BankAccountDetailView.as_view(),
name="bank_details",
),
path(
"bank/<int:b_account_id>/edit/",
2018-10-04 19:29:19 +00:00
BankAccountEditView.as_view(),
name="bank_edit",
),
path(
"bank/<int:b_account_id>/delete/",
2018-10-04 19:29:19 +00:00
BankAccountDeleteView.as_view(),
name="bank_delete",
),
2016-04-20 01:01:14 +00:00
# Club accounts
path("club/create/", ClubAccountCreateView.as_view(), name="club_new"),
path(
"club/<int:c_account_id>/",
2018-10-04 19:29:19 +00:00
ClubAccountDetailView.as_view(),
name="club_details",
),
path(
"club/<int:c_account_id>/edit/",
2018-10-04 19:29:19 +00:00
ClubAccountEditView.as_view(),
name="club_edit",
),
path(
"club/<int:c_account_id>/delete/",
2018-10-04 19:29:19 +00:00
ClubAccountDeleteView.as_view(),
name="club_delete",
),
2016-04-20 01:01:14 +00:00
# Journals
path("journal/create/", JournalCreateView.as_view(), name="journal_new"),
path(
"journal/<int:j_id>/",
2018-10-04 19:29:19 +00:00
JournalDetailView.as_view(),
name="journal_details",
),
path(
"journal/<int:j_id>/edit/",
2018-10-04 19:29:19 +00:00
JournalEditView.as_view(),
name="journal_edit",
),
path(
"journal/<int:j_id>/delete/",
2018-10-04 19:29:19 +00:00
JournalDeleteView.as_view(),
name="journal_delete",
),
path(
"journal/<int:j_id>/statement/nature/",
2018-10-04 19:29:19 +00:00
JournalNatureStatementView.as_view(),
name="journal_nature_statement",
),
path(
"journal/<int:j_id>/statement/person/",
2018-10-04 19:29:19 +00:00
JournalPersonStatementView.as_view(),
name="journal_person_statement",
),
path(
"journal/<int:j_id>/statement/accounting/",
2018-10-04 19:29:19 +00:00
JournalAccountingStatementView.as_view(),
name="journal_accounting_statement",
),
2016-05-03 06:50:54 +00:00
# Operations
path(
"operation/create/<int:j_id>/",
2018-10-04 19:29:19 +00:00
OperationCreateView.as_view(),
name="op_new",
),
path("operation/<int:op_id>/", OperationEditView.as_view(), name="op_edit"),
path("operation/<int:op_id>/pdf/", OperationPDFView.as_view(), name="op_pdf"),
2016-08-07 18:10:50 +00:00
# Companies
path("company/list/", CompanyListView.as_view(), name="co_list"),
path("company/create/", CompanyCreateView.as_view(), name="co_new"),
path("company/<int:co_id>/", CompanyEditView.as_view(), name="co_edit"),
2016-10-05 13:54:00 +00:00
# Labels
path("label/new/", LabelCreateView.as_view(), name="label_new"),
path(
"label/<int:clubaccount_id>/",
2018-10-04 19:29:19 +00:00
LabelListView.as_view(),
name="label_list",
),
path("label/<int:label_id>/edit/", LabelEditView.as_view(), name="label_edit"),
path(
"label/<int:label_id>/delete/",
2018-10-04 19:29:19 +00:00
LabelDeleteView.as_view(),
name="label_delete",
),
2016-11-30 01:41:25 +00:00
# User account
path("refound/account/", RefoundAccountView.as_view(), name="refound_account"),
2016-04-20 01:01:14 +00:00
]