diff --git a/packages/plugins/@hera/plugin-rental/src/server/pdf-documents/waybills-document.tsx b/packages/plugins/@hera/plugin-rental/src/server/pdf-documents/waybills-document.tsx index 4c55f8331..0959b71bd 100644 --- a/packages/plugins/@hera/plugin-rental/src/server/pdf-documents/waybills-document.tsx +++ b/packages/plugins/@hera/plugin-rental/src/server/pdf-documents/waybills-document.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Document, Page, Text, View, StyleSheet, renderToStream } from '@hera/plugin-core'; import { formatCurrency, formatQuantity } from '../../utils/currencyUtils'; import { converDate } from '../../utils/daysUtils'; -import { Waybill } from '../interfaces/waybill'; +import { Waybill } from '../../interfaces/waybill'; const boldFont = { fontFamily: 'source-han-sans', @@ -291,7 +291,7 @@ const PreviewDocument = ({ waybill }: { waybill: Waybill }) => { 附加价格 - {formatQuantity(waybill.additional_cost, 2) == '0.00' + {formatQuantity(waybill.additional_cost, 2) === '0.00' ? '0' : formatQuantity(waybill.additional_cost, 2)} 元