from django.urls import path from .api.views import ( AccountDetailView, AccountListView, BusinessDashboardView, CustomerDetailView, CustomerListCreateView, CustomerStatementView, InventorySummaryView, InvoiceCancelView, InvoiceDetailView, InvoiceListCreateView, InvoiceStatusView, LedgerEntryDetailView, LedgerEntryListCreateView, LedgerBookArchiveView, LedgerBookDetailView, LedgerBookListView, LedgerBookSummaryView, LedgerExportView, LedgerInstallmentDetailView, LedgerInstallmentListCreateView, OpenLedgerBookView, ProductAdjustStockView, ProductDetailView, ProductListCreateView, ProductMovementsView, SubsidiaryLedgerView, TransactionListView, TrialBalanceView, ) app_name = "bizapps" urlpatterns = [ path("dashboard/", BusinessDashboardView.as_view(), name="dashboard"), path("customers/", CustomerListCreateView.as_view(), name="customer-list"), # قبل از نیاید، وگرنه "statement" به‌عنوان pk تفسیر می‌شود. path("customers//statement/", CustomerStatementView.as_view(), name="customer-statement"), path("customers//", CustomerDetailView.as_view(), name="customer-detail"), # export قبل از ثبت شده تا مسیرها با هم تداخل نکنند. path("ledger/books/", LedgerBookListView.as_view(), name="ledger-book-list"), path("ledger/books/open/", OpenLedgerBookView.as_view(), name="ledger-book-open"), path("ledger/books//summary/", LedgerBookSummaryView.as_view(), name="ledger-book-summary"), path("ledger/books//archive/", LedgerBookArchiveView.as_view(), name="ledger-book-archive"), path("ledger/books//", LedgerBookDetailView.as_view(), name="ledger-book-detail"), path("ledger/export/", LedgerExportView.as_view(), name="ledger-export"), path("ledger/", LedgerEntryListCreateView.as_view(), name="ledger-list"), path( "ledger//installments/", LedgerInstallmentListCreateView.as_view(), name="ledger-installment-list", ), path("ledger//", LedgerEntryDetailView.as_view(), name="ledger-detail"), path( "ledger-installments//", LedgerInstallmentDetailView.as_view(), name="ledger-installment-detail", ), path("accounts/", AccountListView.as_view(), name="account-list"), path("accounts//ledger/", SubsidiaryLedgerView.as_view(), name="account-subsidiary-ledger"), path("accounts//", AccountDetailView.as_view(), name="account-detail"), path("trial-balance/", TrialBalanceView.as_view(), name="trial-balance"), path("transactions/", TransactionListView.as_view(), name="transaction-list"), path("products/summary/", InventorySummaryView.as_view(), name="product-summary"), path("products/", ProductListCreateView.as_view(), name="product-list"), path("products//adjust/", ProductAdjustStockView.as_view(), name="product-adjust"), path("products//movements/", ProductMovementsView.as_view(), name="product-movements"), path("products//", ProductDetailView.as_view(), name="product-detail"), path("invoices/", InvoiceListCreateView.as_view(), name="invoice-list"), path("invoices//status/", InvoiceStatusView.as_view(), name="invoice-status"), path("invoices//cancel/", InvoiceCancelView.as_view(), name="invoice-cancel"), path("invoices//", InvoiceDetailView.as_view(), name="invoice-detail"), ]