from django.urls import path
from . import views

urlpatterns = [
    path("pos/", views.sales_dashboard, name="sales_dashboard"),
    path("customers/", views.customer_list, name="customer_list"),
    path("customers/create/", views.customer_create, name="customer_create"),
    path("customers/update/<uuid:pk>/", views.customer_update, name="customer_update"),
    path("customers/delete/<uuid:pk>/", views.customer_delete, name="customer_delete"),
    path("", views.sale_list, name="sale_list"),
    path("create/", views.sale_create, name="sale_create"),
    path("due/", views.due_dashboard, name="due_dashboard"),
    path("due/export/csv/", views.due_export_csv, name="due_export_csv"),
    path("due/export/pdf/", views.due_export_pdf, name="due_export_pdf"),
    path("due/<uuid:sale_pk>/payment/", views.receive_payment, name="receive_payment"),
    path("<uuid:sale_pk>/payments/", views.payment_history, name="payment_history"),
    path("<uuid:pk>/invoice/", views.sale_invoice, name="sale_invoice"),
    path("<uuid:pk>/print/", views.sale_invoice_print, name="sale_invoice_print"),
    path("returns/", views.sale_return_list, name="sale_return_list"),
    path("returns/create/<uuid:sale_pk>/", views.sale_return_create, name="sale_return_create"),
]