61 lines
1.6 KiB
Python
61 lines
1.6 KiB
Python
# coding=utf-8
|
|
|
|
from django.conf.urls import url
|
|
|
|
from .views import (
|
|
year_listing,
|
|
transaction_details,
|
|
comptability_export,
|
|
generate_pdf_for_spf,
|
|
export_year_spf_finance,
|
|
transaction_by_year_listing,
|
|
transaction_listing_for_year_and_type,
|
|
)
|
|
|
|
app_name = "annualcomptability"
|
|
|
|
urlpatterns = [
|
|
url(r"^$", year_listing, name="year_listing"),
|
|
url(
|
|
r"^listing/(?P<accounting_year>[0-9]{4})/(?P<t_type>[A-Za-z]+)$",
|
|
transaction_by_year_listing,
|
|
name="by_year_bank",
|
|
),
|
|
url(
|
|
r"^listing/(?P<accounting_year>[0-9]{4})/(?P<t_type>[A-Za-z]+)$",
|
|
transaction_by_year_listing,
|
|
name="by_year_box",
|
|
),
|
|
url(
|
|
r"^listing/(?P<accounting_year>[0-9]{4})/(?P<transaction_type_id>[0-9]+)$",
|
|
transaction_listing_for_year_and_type,
|
|
name="transaction_listing_for_year_and_type",
|
|
),
|
|
# http://127.0.0.1:8000/comptability/annual/listing/2017/3
|
|
url(
|
|
r"^listing/(?P<accounting_year>[0-9]{4})$",
|
|
transaction_by_year_listing,
|
|
name="by_year",
|
|
),
|
|
url(
|
|
r"^details/(?P<transactionid>[0-9]+)",
|
|
transaction_details,
|
|
name="compta_details",
|
|
),
|
|
url(
|
|
r"^export/simple/(?P<accounting_year>[0-9]{4})$",
|
|
export_year_spf_finance,
|
|
name="export_simple",
|
|
),
|
|
url(
|
|
r"^export/(?P<accounting_year>[0-9]{4})/(?P<export_type>\w+)$",
|
|
comptability_export,
|
|
name="export",
|
|
),
|
|
url(
|
|
r"^export/pdf/(?P<accounting_year>[0-9]{4})/",
|
|
generate_pdf_for_spf,
|
|
name="pdf_export",
|
|
),
|
|
]
|