diff --git a/changelogs-v2/2026-07/43_4826_房务月度对账增加核单实际花销-前端待处理-管理后台.md b/changelogs-v2/2026-07/43_4826_房务月度对账增加核单实际花销-前端待处理-管理后台.md index f36df49..3b9a7a7 100644 --- a/changelogs-v2/2026-07/43_4826_房务月度对账增加核单实际花销-前端待处理-管理后台.md +++ b/changelogs-v2/2026-07/43_4826_房务月度对账增加核单实际花销-前端待处理-管理后台.md @@ -84,6 +84,8 @@ GET /v3/admin/house/reconciliation/monthly?month=2026-07 GET /v3/admin/house/reconciliation/monthly/hotel-orders?month=2026-07&hotelId=1234567890123&hotelName=呼伦贝尔香格里拉大酒店 ``` +2026-07-08 修正:订单明细里的兼容旧字段 `totalAmount` 也按“实际花销”口径返回,等于 `actualExpenseAmount`;未核单录入时两者都为 `null`。前端不要再把 `totalAmount` 当配房金额展示。 + `data[]` 新增字段: | 字段 | 类型 | 示例 | 说明 | @@ -107,7 +109,7 @@ GET /v3/admin/house/reconciliation/monthly/hotel-orders?month=2026-07&hotelId=12 "hotelId": "1234567890123", "hotelName": "呼伦贝尔香格里拉大酒店", "roomNights": 2, - "totalAmount": "640.00", + "totalAmount": "580.00", "actualExpenseAmount": "580.00", "expenseEntered": true } @@ -128,7 +130,8 @@ Excel / PDF 酒店汇总表新增列:`实际花销`。 2. `expenseEntered=false` 或 `actualExpenseAmount=null` 时显示 `—`,不要显示 `0`。 3. 已录入时展示 `actualExpenseAmount`。 4. 订单明细弹窗也展示每个订单的 `actualExpenseAmount`,未录入显示 `—`。 -5. Excel / PDF 按后端导出结果展示即可。 +5. 如果现有列仍绑定 `totalAmount`,也会拿到同一实际花销金额;建议显示文案改为“实际花销”。 +6. Excel / PDF 按后端导出结果展示即可。 ## 只读边界