831e656fa3
- Add MessageTemplate.runtime_field_labels so mobile's per-field execution-time labels are actually persisted (were silently dropped) - Fix AdvanceOrderStageView reading the wrong extra-input key, and be honest about SMS send failures instead of always claiming success - Add admin gift-gem SMS notification via Kavenegar - Post real double-entry Transactions for plain (non-invoice) ledger entries so trial balance, the معین screen, and CSV/XLSX exports actually include everyday income/expense entries; backfill existing historical entries via data migration - Rewrite CSV ledger export to produce an actual دفتر معین structure (per-account running balance) instead of a flat row dump - Add invoice percent/promotional discounts, tax presets, ledger discount-percent handling, product SKU/category/expiry fields, and manual ledger-book archiving (replacing auto-archive on new book) - Add reviews app (models, API, admin) for the comments/reviews feature - Update tests for the above; fix two stale assertions left over from earlier work in this branch (معین sheet name, book auto-close)
27 lines
937 B
Python
27 lines
937 B
Python
from django.urls import path
|
|
|
|
from .api.views import (
|
|
AdvanceOrderStageView,
|
|
GenerateOrderTrackingCodeView,
|
|
OrderDetailView,
|
|
OrderListCreateView,
|
|
OrderStageDetailView,
|
|
OrderStageListCreateView,
|
|
OrderStageLogListView,
|
|
)
|
|
|
|
app_name = "orders"
|
|
urlpatterns = [
|
|
path("stages/", OrderStageListCreateView.as_view(), name="stage-list"),
|
|
path("stages/<str:pk>/", OrderStageDetailView.as_view(), name="stage-detail"),
|
|
path("orders/", OrderListCreateView.as_view(), name="order-list"),
|
|
path("orders/<str:pk>/", OrderDetailView.as_view(), name="order-detail"),
|
|
path("orders/<str:pk>/advance/", AdvanceOrderStageView.as_view(), name="order-advance"),
|
|
path(
|
|
"orders/<str:pk>/generate-tracking-code/",
|
|
GenerateOrderTrackingCodeView.as_view(),
|
|
name="order-generate-tracking-code",
|
|
),
|
|
path("orders/<str:pk>/logs/", OrderStageLogListView.as_view(), name="order-logs"),
|
|
]
|