97 lines
6.4 KiB
Python
97 lines
6.4 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/debtors-no-vosol/', views.report_debtors_no_vosol, name='report_debtors_no_vosol'),
|
|
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'),
|
|
|
|
# === مدیریت پیامک ===
|
|
path('sms/settings', views.sms_settings, name='sms_settings'),
|
|
path('sms/templates', views.sms_templates, name='sms_templates'),
|
|
path('sms/template/<int:t_id>/edit', views.sms_template_edit, name='sms_template_edit'),
|
|
path('sms/customer/<int:c_id>/toggle', views.sms_customer_toggle, name='sms_customer_toggle'),
|
|
path('sms/customer/<int:c_id>/primary', views.sms_primary_toggle, name='sms_primary_toggle'),
|
|
path('sms/customer/<int:c_id>/send', views.sms_send_custom, name='sms_send_custom'),
|
|
path('sms/queue', views.sms_queue, name='sms_queue'),
|
|
path('sms/queue/bulk', views.sms_queue_bulk, name='sms_queue_bulk'),
|
|
path('sms/queue/empty', views.sms_queue_empty, name='sms_queue_empty'),
|
|
path('sms/queue/<int:q_id>/approve', views.sms_queue_approve, name='sms_queue_approve'),
|
|
path('sms/queue/<int:q_id>/delete', views.sms_queue_delete, name='sms_queue_delete'),
|
|
path('sms/queue/<int:q_id>/retry', views.sms_queue_retry, name='sms_queue_retry'),
|
|
|
|
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) |