Files
KCGL/inventory-backend/app/models/__init__.py

19 lines
512 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# app/models/__init__.py
# 1. 基础物料 (必须先加载,因为 buy 依赖它)
from app.models.base import MaterialBase, MaterialWarningSetting
# 2. 采购入库 (现在的类名是 StockBuy)
from app.models.inbound.buy import StockBuy
# 3. 半成品入库 (如果有)
try:
from app.models.inbound.semi import StockSemi
except ImportError:
pass
# 4. 出库记录 (如果有BuyService 用到了 TransOutbound)
try:
from app.models.outbound import TransOutbound
except ImportError:
pass