fix(backend): V2 样本缴费补齐协议列表已收金额 (#88) #89

Merged
cykj merged 1 commits from fix/issue-88-v2-payment-summary-export into V2.0 2026-11-11 06:17:00 +00:00
Owner

问题

自存表导出时,V2 样本缴费已确认 yjf 的协议,已缴/退款列为空。

改动

  • build_protocol_payment_summaries(include_sample_payment_modes=True) 从样本缴费方案汇总合同额、已收、分期明细与退费
  • 补充单元测试

关联:#88

测试

  • pytest backend/tests/test_protocol_v2_payment_mode_summary.py -q → 7 passed
  • 造数导出自存 01/02/05/06/07 smoke:receivedAmount 已有值

构建与整体验收由用户在合入后进行。

## 问题 自存表导出时,V2 样本缴费已确认 `yjf` 的协议,已缴/退款列为空。 ## 改动 - `build_protocol_payment_summaries(include_sample_payment_modes=True)` 从样本缴费方案汇总合同额、已收、分期明细与退费 - 补充单元测试 关联:https://gitea.aichengyan.com/cykj/zkxw/issues/88 ## 测试 - `pytest backend/tests/test_protocol_v2_payment_mode_summary.py -q` → 7 passed - 造数导出自存 01/02/05/06/07 smoke:receivedAmount 已有值 构建与整体验收由用户在合入后进行。
cykj added 1 commit 2026-11-11 06:16:47 +00:00
自存表导出依赖 paymentSummary.receivedAmount,原先仅汇总 V1
biz_protocol_payment;现对 include_sample_payment_modes 路径补齐
合同额、已收、分期明细与退费,避免已缴/退款列为空。

Co-authored-by: Cursor <cursoragent@cursor.com>
cykj merged commit d0eb97b167 into V2.0 2026-11-11 06:17:00 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cykj/zkxw#89