forked from erp-dev/erp
feat: support pre_sales_order convert to sales_order api
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user