diff --git a/.changeset/short-guests-tickle.md b/.changeset/short-guests-tickle.md new file mode 100644 index 000000000..f065f16bd --- /dev/null +++ b/.changeset/short-guests-tickle.md @@ -0,0 +1,5 @@ +--- +"@hera/plugin-rental": patch +--- + +结算单本期明细显示数据为0的内容 diff --git a/packages/plugins/@hera/plugin-rental/src/server/services/settlement-service.ts b/packages/plugins/@hera/plugin-rental/src/server/services/settlement-service.ts index 80b771516..9f6ac4eef 100644 --- a/packages/plugins/@hera/plugin-rental/src/server/services/settlement-service.ts +++ b/packages/plugins/@hera/plugin-rental/src/server/services/settlement-service.ts @@ -668,7 +668,7 @@ export class SettlementService { const recordsCategoryFeeItem = feeData(createFeesDatas, settlementAbout, 'category'); const recordsProductFeeItem = feeData(createFeesDatas, settlementAbout, 'product'); //本期信息 - let createDatas = [ + const createDatas = [ ...createCategoryDatasItem.list, ...createProductDatasItem.list, ...recordsCategoryFeeItem, @@ -677,7 +677,6 @@ export class SettlementService { createDatas.sort((a, b) => { return new Date(a.date).getTime() - new Date(b.date).getTime(); }); - createDatas = createDatas.filter((value) => value.name.includes('$$') || value.count); //筛选历史结存 createCategoryDatasItem.history = createCategoryDatasItem.history?.filter((value) => value.count); createProductDatasItem.history = createProductDatasItem.history?.filter(