2017-04-24 15:51:12 +00:00
|
|
|
# -*- 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.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2023-03-09 12:39:33 +00:00
|
|
|
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
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"simple_type/",
|
2018-10-04 19:29:19 +00:00
|
|
|
SimplifiedAccountingTypeListView.as_view(),
|
|
|
|
name="simple_type_list",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"simple_type/create/",
|
2018-10-04 19:29:19 +00:00
|
|
|
SimplifiedAccountingTypeCreateView.as_view(),
|
|
|
|
name="simple_type_new",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
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
|
2023-03-09 12:39:33 +00:00
|
|
|
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
|
2023-03-09 12:39:33 +00:00
|
|
|
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",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"bank/<int:b_account_id>/edit/",
|
2018-10-04 19:29:19 +00:00
|
|
|
BankAccountEditView.as_view(),
|
|
|
|
name="bank_edit",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
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
|
2023-03-09 12:39:33 +00:00
|
|
|
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",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"club/<int:c_account_id>/edit/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ClubAccountEditView.as_view(),
|
|
|
|
name="club_edit",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
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
|
2023-03-09 12:39:33 +00:00
|
|
|
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",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"journal/<int:j_id>/edit/",
|
2018-10-04 19:29:19 +00:00
|
|
|
JournalEditView.as_view(),
|
|
|
|
name="journal_edit",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"journal/<int:j_id>/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
JournalDeleteView.as_view(),
|
|
|
|
name="journal_delete",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"journal/<int:j_id>/statement/nature/",
|
2018-10-04 19:29:19 +00:00
|
|
|
JournalNatureStatementView.as_view(),
|
|
|
|
name="journal_nature_statement",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"journal/<int:j_id>/statement/person/",
|
2018-10-04 19:29:19 +00:00
|
|
|
JournalPersonStatementView.as_view(),
|
|
|
|
name="journal_person_statement",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
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
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"operation/create/<int:j_id>/",
|
2018-10-04 19:29:19 +00:00
|
|
|
OperationCreateView.as_view(),
|
|
|
|
name="op_new",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
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
|
2023-03-09 12:39:33 +00:00
|
|
|
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
|
2023-03-09 12:39:33 +00:00
|
|
|
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",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
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
|
2023-03-09 12:39:33 +00:00
|
|
|
path("refound/account/", RefoundAccountView.as_view(), name="refound_account"),
|
2016-04-20 01:01:14 +00:00
|
|
|
]
|