Merge pull request 'feat: recodpdf kg不换算吨' (#360) from fix_recordfdf into @hera/dev
Reviewed-on: daoyoucloud/tachycode#360 Reviewed-by: sealday <zhanglin@daoyoucloud.com>
This commit is contained in:
commit
9c03c9b1f6
@ -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, // 租金+费用,无关联费用
|
||||||
|
Loading…
Reference in New Issue
Block a user