Sith/accounting/urls.py

155 lines
4.9 KiB
Python
Raw Normal View History

# -*- coding:utf-8 -*
#
# Copyright 2016,2017
# - Skia <skia@libskia.so>
#
# Ce fichier fait partie du site de l'Association des Étudiants de l'UTBM,
# http://ae.utbm.fr.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License a published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Sofware Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
2019-10-05 16:14:41 +00:00
from django.urls import re_path
2016-04-20 01:01:14 +00:00
from accounting.views import *
urlpatterns = [
2016-08-24 17:50:22 +00:00
# Accounting types
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^simple_type$",
SimplifiedAccountingTypeListView.as_view(),
name="simple_type_list",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^simple_type/create$",
SimplifiedAccountingTypeCreateView.as_view(),
name="simple_type_new",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^simple_type/(?P<type_id>[0-9]+)/edit$",
SimplifiedAccountingTypeEditView.as_view(),
name="simple_type_edit",
),
2016-05-03 06:50:54 +00:00
# Accounting types
2019-10-05 16:14:41 +00:00
re_path(r"^type$", AccountingTypeListView.as_view(), name="type_list"),
re_path(r"^type/create$", AccountingTypeCreateView.as_view(), name="type_new"),
re_path(
2018-10-04 19:29:19 +00:00
r"^type/(?P<type_id>[0-9]+)/edit$",
AccountingTypeEditView.as_view(),
name="type_edit",
),
2016-04-20 01:01:14 +00:00
# Bank accounts
2019-10-05 16:14:41 +00:00
re_path(r"^$", BankAccountListView.as_view(), name="bank_list"),
re_path(r"^bank/create$", BankAccountCreateView.as_view(), name="bank_new"),
re_path(
2018-10-04 19:29:19 +00:00
r"^bank/(?P<b_account_id>[0-9]+)$",
BankAccountDetailView.as_view(),
name="bank_details",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^bank/(?P<b_account_id>[0-9]+)/edit$",
BankAccountEditView.as_view(),
name="bank_edit",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^bank/(?P<b_account_id>[0-9]+)/delete$",
BankAccountDeleteView.as_view(),
name="bank_delete",
),
2016-04-20 01:01:14 +00:00
# Club accounts
2019-10-05 16:14:41 +00:00
re_path(r"^club/create$", ClubAccountCreateView.as_view(), name="club_new"),
re_path(
2018-10-04 19:29:19 +00:00
r"^club/(?P<c_account_id>[0-9]+)$",
ClubAccountDetailView.as_view(),
name="club_details",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^club/(?P<c_account_id>[0-9]+)/edit$",
ClubAccountEditView.as_view(),
name="club_edit",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^club/(?P<c_account_id>[0-9]+)/delete$",
ClubAccountDeleteView.as_view(),
name="club_delete",
),
2016-04-20 01:01:14 +00:00
# Journals
2019-10-05 16:14:41 +00:00
re_path(r"^journal/create$", JournalCreateView.as_view(), name="journal_new"),
re_path(
2018-10-04 19:29:19 +00:00
r"^journal/(?P<j_id>[0-9]+)$",
JournalDetailView.as_view(),
name="journal_details",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^journal/(?P<j_id>[0-9]+)/edit$",
JournalEditView.as_view(),
name="journal_edit",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^journal/(?P<j_id>[0-9]+)/delete$",
JournalDeleteView.as_view(),
name="journal_delete",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^journal/(?P<j_id>[0-9]+)/statement/nature$",
JournalNatureStatementView.as_view(),
name="journal_nature_statement",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^journal/(?P<j_id>[0-9]+)/statement/person$",
JournalPersonStatementView.as_view(),
name="journal_person_statement",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^journal/(?P<j_id>[0-9]+)/statement/accounting$",
JournalAccountingStatementView.as_view(),
name="journal_accounting_statement",
),
2016-05-03 06:50:54 +00:00
# Operations
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^operation/create/(?P<j_id>[0-9]+)$",
OperationCreateView.as_view(),
name="op_new",
),
2019-10-05 16:14:41 +00:00
re_path(
r"^operation/(?P<op_id>[0-9]+)$", OperationEditView.as_view(), name="op_edit"
),
re_path(
2018-10-04 19:29:19 +00:00
r"^operation/(?P<op_id>[0-9]+)/pdf$", OperationPDFView.as_view(), name="op_pdf"
),
2016-08-07 18:10:50 +00:00
# Companies
2019-10-05 16:14:41 +00:00
re_path(r"^company/list$", CompanyListView.as_view(), name="co_list"),
re_path(r"^company/create$", CompanyCreateView.as_view(), name="co_new"),
re_path(r"^company/(?P<co_id>[0-9]+)$", CompanyEditView.as_view(), name="co_edit"),
2016-10-05 13:54:00 +00:00
# Labels
2019-10-05 16:14:41 +00:00
re_path(r"^label/new$", LabelCreateView.as_view(), name="label_new"),
re_path(
2018-10-04 19:29:19 +00:00
r"^label/(?P<clubaccount_id>[0-9]+)$",
LabelListView.as_view(),
name="label_list",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^label/(?P<label_id>[0-9]+)/edit$", LabelEditView.as_view(), name="label_edit"
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^label/(?P<label_id>[0-9]+)/delete$",
LabelDeleteView.as_view(),
name="label_delete",
),
2016-11-30 01:41:25 +00:00
# User account
2019-10-05 16:14:41 +00:00
re_path(r"^refound/account$", RefoundAccountView.as_view(), name="refound_account"),
2016-04-20 01:01:14 +00:00
]