import type { Priority1DisplayLine } from "@/modules/priority1/quote-storage";

/** 用户可见报价：优先展示加价后金额 */
export function priority1CustomerDisplayUsd(line: Priority1DisplayLine): number {
  if (line.final_total_usd > 0) {
    return line.final_total_usd;
  }
  return line.totalUsd;
}

export function priority1HasMarkup(line: Priority1DisplayLine): boolean {
  return line.markup_amount > 0.005;
}
