from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('inventory/', views.inventory, name='inventory'), path('pos/', views.pos, name='pos'), path('customers/', views.customers, name='customers'), path('suppliers/', views.suppliers, name='suppliers'), path('purchases/', views.purchases, name='purchases'), path('reports/', views.reports, name='reports'), path('settings/', views.settings_view, name='settings'), path('users/', views.user_management, name='user_management'), # Invoices (Sales) path('invoices/', views.invoice_list, name='invoices'), path('invoices/create/', views.invoice_create, name='invoice_create'), path('invoices//', views.invoice_detail, name='invoice_detail'), path('invoices/payment//', views.add_sale_payment, name='add_sale_payment'), path('invoices/delete//', views.delete_sale, name='delete_sale'), # Quotations path('quotations/', views.quotations, name='quotations'), path('quotations/create/', views.quotation_create, name='quotation_create'), path('quotations//', views.quotation_detail, name='quotation_detail'), path('quotations/convert//', views.convert_quotation_to_invoice, name='convert_quotation_to_invoice'), path('quotations/delete//', views.delete_quotation, name='delete_quotation'), path('api/create-quotation/', views.create_quotation_api, name='create_quotation_api'), # Sales Returns path('sales/returns/', views.sales_returns, name='sales_returns'), path('sales/returns/create/', views.sale_return_create, name='sale_return_create'), path('sales/returns//', views.sale_return_detail, name='sale_return_detail'), path('sales/returns/delete//', views.delete_sale_return, name='delete_sale_return'), path('api/create-sale-return/', views.create_sale_return_api, name='create_sale_return_api'), # Purchases (Invoices) path('purchases/create/', views.purchase_create, name='purchase_create'), path('purchases//', views.purchase_detail, name='purchase_detail'), path('purchases/payment//', views.add_purchase_payment, name='add_purchase_payment'), path('purchases/delete//', views.delete_purchase, name='delete_purchase'), # Purchase Returns path('purchases/returns/', views.purchase_returns, name='purchase_returns'), path('purchases/returns/create/', views.purchase_return_create, name='purchase_return_create'), path('purchases/returns//', views.purchase_return_detail, name='purchase_return_detail'), path('purchases/returns/delete//', views.delete_purchase_return, name='delete_purchase_return'), path('api/create-purchase-return/', views.create_purchase_return_api, name='create_purchase_return_api'), # API / Actions path('api/create-sale/', views.create_sale_api, name='create_sale_api'), path('api/create-purchase/', views.create_purchase_api, name='create_purchase_api'), # Customers path('customers/add/', views.add_customer, name='add_customer'), path('customers/edit//', views.edit_customer, name='edit_customer'), path('customers/delete//', views.delete_customer, name='delete_customer'), # Suppliers path('suppliers/add/', views.add_supplier, name='add_supplier'), path('suppliers/edit//', views.edit_supplier, name='edit_supplier'), path('suppliers/delete//', views.delete_supplier, name='delete_supplier'), path('api/add-supplier-ajax/', views.add_supplier_ajax, name='add_supplier_ajax'), # Inventory path('inventory/suggest-sku/', views.suggest_sku, name='suggest_sku'), path('inventory/add/', views.add_product, name='add_product'), path('inventory/edit//', views.edit_product, name='edit_product'), path('inventory/delete//', views.delete_product, name='delete_product'), path('inventory/barcodes/', views.barcode_labels, name='barcode_labels'), path('inventory/import/', views.import_products, name='import_products'), # Categories path('inventory/category/add/', views.add_category, name='add_category'), path('inventory/category/edit//', views.edit_category, name='edit_category'), path('inventory/category/delete//', views.delete_category, name='delete_category'), path('api/add-category-ajax/', views.add_category_ajax, name='add_category_ajax'), # Units path('inventory/unit/add/', views.add_unit, name='add_unit'), path('inventory/unit/edit//', views.edit_unit, name='edit_unit'), path('inventory/unit/delete//', views.delete_unit, name='delete_unit'), path('api/add-unit-ajax/', views.add_unit_ajax, name='add_unit_ajax'), # Payment Methods path('settings/payment-methods/add/', views.add_payment_method, name='add_payment_method'), path('settings/payment-methods/edit//', views.edit_payment_method, name='edit_payment_method'), path('settings/payment-methods/delete//', views.delete_payment_method, name='delete_payment_method'), ]