Files
khatibi/admin_panel/urls.py
T
2026-08-12 21:55:24 +03:30

82 lines
5.3 KiB
Python

from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import views
app_name = 'admin_panel'
urlpatterns = [
path('', views.ActionListToday, name='index'),
path('p_login/', views.p_login, name='p_login'),
path('p_logout/', views.p_logout, name='p_logout'),
path('bedehi/', views.bedehi, name='bedehi'),
path('report/', views.report, name='report'),
path('report/inventory-movements/', views.inventory_movements_report, name='inventory_movements_report'),
path('report/dashboard/', views.financial_dashboard, name='financial_dashboard'),
path('report/rezayat_dashboard/', views.rezayat_dashboard, name='rezayat_dashboard'),
path('hesabdari/', views.hesabdari, name='hesabdari'),
path('hesabdari/sarresid_nashode/', views.hesabdari_residnashone, name='hesabdari_residnashone'),
path('hesabdari/check/pass/', views.hesabdari_checkPass, name='hesabdari_check_pass'),
path('hesabdari/check/pass-fail/', views.hesabdari_checkPassFail, name='hesabdari_check_pass_fail'),
path('bedehi/khadamat', views.bedehiKhadamat, name='bedehiKhadamat'),
path('bedehi/nasb', views.bedehiNasb, name='bedehiNasb'),
path('customers/', views.customers, name='customers'),
path('customers/search/<slug:searchVal>/<slug:searchOn>', views.customersSearch, name='customersSearch'),
path('customers/add', views.customersAdd, name='customersAdd'),
path('customer/<int:c_id>', views.customerNew2, name='customer'),
# === مسیرهای مربوط به استعلام چک صیادی ===
path('hesabdari/check/api/status-inquiry/', views.api_check_status_inquiry, name='api_check_status_inquiry'),
path('hesabdari/check/api/sabt-inquiry/', views.api_check_sabt_inquiry, name='api_check_sabt_inquiry'),
path('customer2/<int:c_id>', views.customerNew2, name='customer2'),
path('customerNew/<int:c_id>', views.customerNew2, name='customerNew'),
path('customer/<int:c_id>/action', views.customerAction, name='customerAction'),
path('customer/<int:c_id>/nazar/', views.customerNazar, name='customerNazar'),
path('customer/<int:c_id>/action/new', views.customerNewAction, name='customerNewAction'),
path('customer/<int:c_id>/action/<int:action_id>/edit', views.customerEditAction, name='customerEditAction'),
path('customer/<int:c_id>/del', views.customerDel, name='customerDel'),
path('customer/<int:c_id>/factors/', views.customerFactors, name='customerFactors'),
path('customer/<int:c_id>/factor/<int:f_id>', views.customerFactor, name='customerFactor'),
path('customer/<int:c_id>/factor/<int:f_id>/del', views.FactorDel, name='FactorDel'),
path('customer/<int:c_id>/factor/new', views.newFactor, name='newFactor'),
path('customer/<int:c_id>/factor/new2', views.newFactor2, name='newFactor2'),
path('customer/<int:c_id>/hesabdari', views.customerHesabdari, name='customerHesabdari'),
path('customer/<int:c_id>/hesabdari/sarresidh', views.sarresidh, name='customerSarresidh'),
path('customer/<int:c_id>/hesabdari/add', views.customerHesabdariAdd, name='customerHesabdariAdd'),
path('stores/', views.stores, name='stores'),
path('productsJson/', views.productsJson, name='productsJson'),
path('ActionJson/<int:action_id>', views.ActionJson, name='ActionJson'),
path('CustomerJson/<int:c_id>', views.CustomerJson, name='CustomerJson'),
path('productMojodi/<int:p_id>', views.productMojodi, name='productMojodi'),
path('store/<int:s_id>', views.store, name='store'),
path('store/<int:s_id>/operations', views.operations, name='operations'),
path('store/<int:s_id>/operations/<int:p_id>', views.operationProduct, name='operationProduct'),
path('store/<int:s_id>/operation/<int:p_id>/new', views.newOperation, name='newOperation'),
path('store/new', views.newStore, name='newStore'),
# === مسیرهای مدیریت انتقال بین انبارها ===
path('store/<int:s_id>/transfers/', views.store_transfers, name='store_transfers'),
path('transfer/<int:transfer_id>/action/', views.process_transfer_action, name='process_transfer_action'),
path('product/add', views.productAdd, name='productAdd'),
path('product/edit', views.productEdit, name='productEdit'),
path('operation', views.operation, name='operation'),
path('product/del/<int:p_id>/<int:s_id>', views.productDel, name='productDel'),
path('customerEdit/<int:c_id>', views.customerEdit, name='customerEdit'),
path('rezayat/', views.rezayat, name='rezayat'),
path('rezayat/<int:ac_id>/edit', views.rezayatEdit, name='rezayatEdit'),
path('entezar/', views.entezar, name='entezar'),
path('ActionList/', views.ActionList, name='ActionList'),
path('ActionList/today', views.ActionListToday, name='ActionListToday'),
path('ActionList/<int:u_id>/today', views.ActionListUserToday, name='ActionListUserToday'),
path('ActionList/all', views.ActionListAll, name='ActionListAll'),
path('passCheck/<int:articl_id>', views.passCheck, name='passCheck'),
path('sarresid/update-check-info/<int:sarresid_id>', views.update_check_info, name='update_check_info'),
path('addSarresid/<int:cs_id>', views.addSarresid, name='addSarresid'),
path('pardakhtNesiye/<int:cs_id>', views.pardakhtNesiye, name='pardakhtNesiye'),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)