1
0
forked from erp-dev/erp

fix: added merchant_id to printing_order and plate_order

This commit is contained in:
2026-01-14 14:26:03 +08:00
parent 3e75328156
commit fae667c965
20 changed files with 1049 additions and 17 deletions

View File

@@ -25,6 +25,7 @@ from .views.products import ProductQuickViewSet
from .views.parameters import StateParameterViewSet
from .views.users import CreateUserWithProfileView
from .views.mingdaoyun import MDYPlateOrderStagingViewSet
from .views.shipment import SalesItemByPrintingOrderView
# 创建 DRF Router for Stateflow
stateflow_router = DefaultRouter()
@@ -98,6 +99,13 @@ urlpatterns = [
# Stateflow API (使用 Router)
path('stateflow/', include(stateflow_router.urls)),
# Shipment API
path(
'shipment/sales-items/by-printing-order/<int:printing_order_id>/',
SalesItemByPrintingOrderView.as_view(),
name='sales_items_by_printing_order'
),
# 主 Router (printing-orders 等)
path('', include(main_router.urls)),
]