You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
440 B

import type { QuoteDetail } from "@/lib/frontend/types";
import { PRIORITY1_MANUAL_FOLLOWUP_ERROR_CODE } from "@/modules/priority1/constants";
/** 已完成但无金额、需人工跟进的 Priority1 询价 */
export function isPriority1ManualFollowupDetail(
detail: Pick<QuoteDetail, "status" | "error_code">,
): boolean {
return (
detail.status === "done" &&
detail.error_code === PRIORITY1_MANUAL_FOLLOWUP_ERROR_CODE
);
}