38240-vm/core/urls.py
Flatlogic Bot 04c4db511d DN V1
2026-02-06 12:02:27 +00:00

29 lines
1.7 KiB
Python

from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('settings/', views.app_settings, name='app_settings'),
path('medicines/', views.medicine_list, name='medicine_list'),
path('medicines/export-low-stock/', views.export_low_stock_pdf, name='export_low_stock_pdf'),
path('suppliers/', views.supplier_list, name='supplier_list'),
path('categories/', views.category_list, name='category_list'),
path('faktur/input/', views.input_faktur, name='input_faktur'),
path('faktur/<int:pk>/', views.faktur_detail, name='faktur_detail'),
path('barang-keluar/', views.barang_keluar, name='barang_keluar'),
path('api/batches/', views.get_batches, name='get_batches'),
path('laporan/', views.laporan_transaksi, name='laporan_transaksi'),
path('transaksi/<int:pk>/delete/', views.delete_transaksi, name='delete_transaksi'),
path('transaksi/<int:pk>/edit/', views.edit_transaksi, name='edit_transaksi'),
# Import / Template / OCR
path('template/download/<str:type>/', views.download_template, name='download_template'),
path('import/excel/<str:type>/', views.import_excel, name='import_excel'),
path('import/excel/<str:type>/<int:faktur_id>/', views.import_excel, name='import_excel_faktur'),
path('ocr/faktur/<int:faktur_id>/', views.ocr_faktur, name='ocr_faktur'),
path('cart/process/<str:type>/', views.process_cart, name='process_cart'),
path('cart/process/<str:type>/<int:faktur_id>/', views.process_cart, name='process_cart_faktur'),
path('cart/clear/<str:type>/', views.clear_cart, name='clear_cart'),
path('cart/clear/<str:type>/<int:faktur_id>/', views.clear_cart, name='clear_cart_faktur'),
]