From 2099be026a31375e4438a63e074df589df18cd35 Mon Sep 17 00:00:00 2001 From: lyx <2027667395@qq.com> Date: Wed, 13 Mar 2024 14:29:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20recodpdf=20kg=E4=B8=8D=E6=8D=A2?= =?UTF-8?q?=E7=AE=97=E5=90=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/server/services/record-pdf-service.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/plugins/@hera/plugin-rental/src/server/services/record-pdf-service.ts b/packages/plugins/@hera/plugin-rental/src/server/services/record-pdf-service.ts index 8104b7616..ddb890086 100644 --- a/packages/plugins/@hera/plugin-rental/src/server/services/record-pdf-service.ts +++ b/packages/plugins/@hera/plugin-rental/src/server/services/record-pdf-service.ts @@ -271,13 +271,7 @@ export class RecordPdfService { product_correlation.push(itemB); } }); - const recordPdfData = [...product_correlation, ...no_product_fee, ...excludedFee].map((item) => { - return { - ...item, - total: item.conversion_unit === 'KG' ? item.total / 1000 : item.total, - conversion_unit: item.conversion_unit === 'KG' ? '吨' : item.conversion_unit, - }; - }); + const recordPdfData = [...product_correlation, ...no_product_fee, ...excludedFee]; return await renderItV2({ detail: recordData, record: recordPdfData, // 租金+费用,无关联费用