2018-08-29 22:52:32 +00:00
|
|
|
from django.urls import path, include
|
|
|
|
from .views import *
|
|
|
|
|
|
|
|
app_name = 'economy'
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path(
|
2018-11-20 16:12:32 +00:00
|
|
|
'',
|
|
|
|
EconomyDashboardView.as_view(),
|
|
|
|
name='dashboard'
|
2018-08-29 22:52:32 +00:00
|
|
|
),
|
2018-11-20 16:12:32 +00:00
|
|
|
|
|
|
|
# expenses
|
2018-08-29 22:52:32 +00:00
|
|
|
path(
|
2018-11-20 16:12:32 +00:00
|
|
|
'expenses/',
|
|
|
|
include([
|
|
|
|
path(
|
|
|
|
'',
|
|
|
|
ExpenseListView.as_view(),
|
|
|
|
name='expense_list'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'add/',
|
|
|
|
ExpenseCreateView.as_view(),
|
|
|
|
name='expense_create'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'<uuid:pk>/',
|
|
|
|
include([
|
|
|
|
path(
|
|
|
|
'',
|
|
|
|
ExpenseDetailView.as_view(),
|
|
|
|
name='expense_detail'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'update/',
|
|
|
|
ExpenseUpdateView.as_view(),
|
|
|
|
name='expense_update'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'delete/',
|
|
|
|
ExpenseDeleteView.as_view(),
|
|
|
|
name='expense_delete'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'invoice/',
|
|
|
|
ExpenseInvoiceView.as_view(),
|
|
|
|
name='expense_invoice'
|
|
|
|
),
|
|
|
|
]),
|
|
|
|
),
|
|
|
|
]),
|
2018-08-29 22:52:32 +00:00
|
|
|
),
|
2018-11-20 16:12:32 +00:00
|
|
|
|
|
|
|
# reimbursements
|
2018-08-29 22:52:32 +00:00
|
|
|
path(
|
2018-11-20 16:12:32 +00:00
|
|
|
'reimbursements/',
|
|
|
|
include([
|
|
|
|
path(
|
|
|
|
'',
|
|
|
|
ReimbursementListView.as_view(),
|
|
|
|
name='reimbursement_list'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'<uuid:pk>/',
|
|
|
|
ReimbursementDetailView.as_view(),
|
|
|
|
name='reimbursement_detail'
|
|
|
|
),
|
|
|
|
]),
|
2018-08-29 22:52:32 +00:00
|
|
|
),
|
2018-11-20 16:12:32 +00:00
|
|
|
|
|
|
|
# revenue
|
2018-08-29 22:52:32 +00:00
|
|
|
path(
|
2018-11-20 16:12:32 +00:00
|
|
|
'revenues/',
|
|
|
|
include([
|
|
|
|
path(
|
|
|
|
'',
|
|
|
|
RevenueListView.as_view(),
|
|
|
|
name='revenue_list'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'add/',
|
|
|
|
RevenueCreateView.as_view(),
|
|
|
|
name='revenue_create'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'<uuid:pk>/',
|
|
|
|
include([
|
|
|
|
path(
|
|
|
|
'',
|
|
|
|
RevenueDetailView.as_view(),
|
|
|
|
name='revenue_detail'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'update/',
|
|
|
|
RevenueUpdateView.as_view(),
|
|
|
|
name='revenue_update'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'delete/',
|
|
|
|
RevenueDeleteView.as_view(),
|
|
|
|
name='revenue_delete'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'invoice/',
|
|
|
|
RevenueInvoiceView.as_view(),
|
|
|
|
name='revenue_invoice'
|
|
|
|
),
|
|
|
|
]),
|
|
|
|
),
|
|
|
|
]),
|
2018-08-29 22:52:32 +00:00
|
|
|
),
|
|
|
|
]
|
|
|
|
|