feat: recodpdf kg不换算吨

This commit is contained in:
lyx 2024-03-13 14:29:21 +08:00
parent bd5bcadd3a
commit 2099be026a

View File

@ -271,13 +271,7 @@ export class RecordPdfService {
product_correlation.push(itemB); product_correlation.push(itemB);
} }
}); });
const recordPdfData = [...product_correlation, ...no_product_fee, ...excludedFee].map((item) => { const recordPdfData = [...product_correlation, ...no_product_fee, ...excludedFee];
return {
...item,
total: item.conversion_unit === 'KG' ? item.total / 1000 : item.total,
conversion_unit: item.conversion_unit === 'KG' ? '吨' : item.conversion_unit,
};
});
return await renderItV2({ return await renderItV2({
detail: recordData, detail: recordData,
record: recordPdfData, // 租金+费用,无关联费用 record: recordPdfData, // 租金+费用,无关联费用