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.
14 lines
429 B
14 lines
429 B
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;
|
|
}
|