1
0
forked from erp-dev/erp

feat: support pre_sales_order convert to sales_order api

This commit is contained in:
2026-02-02 15:58:29 +08:00
parent 2572c5aab4
commit fb93582b06
13 changed files with 379 additions and 7 deletions

View File

@@ -10,13 +10,16 @@ This module is intended for reusable business logic that may be called by:
from __future__ import annotations
from dataclasses import dataclass
from typing import TYPE_CHECKING
from urllib.parse import urlparse
from django.conf import settings
from django.utils import timezone
from api_v1.utils.wecom_webhook import send_wecom_webhook_message
from printing.models import PrintingJob
if TYPE_CHECKING:
from printing.models import PrintingJob
@dataclass(frozen=True)
@@ -188,6 +191,7 @@ def send_printing_job_latest_state_wecom(
"""
Reusable entrypoint for command / future API.
"""
from printing.models import PrintingJob
job = (
PrintingJob.objects.select_related("printing_order", "business_object")
.filter(id=int(printing_job_id))