ci/woodpecker/push/main Pipeline was successful
289cc8f(§4-1 博海固定成本仅借方)在 dashboard._bep_sum_field 新增 terms 分支, 把 bep_caliber 的 terms 记法字段名(debit/credit)原样传给 getattr(VoucherDetail, field) ⇒ AttributeError: type object 'VoucherDetail' has no attribute 'debit' ⇒ GET /api/cma/dashboard/bep-card(entity=2 博海)稳定 500(entity=1 走 filters 分支不受影响)。 修复:terms 分支内做字段名映射 debit→debit_amount / credit→credit_amount(与 profit_lines.FIELD_MAP、kpi_bep_deriver._TERM_FIELD 同式),再递归聚合。 回归测试:tests/test_profit_summary_real_caliber_20261014.py 新增 test_dashboard_card_e2_terms_mode_field_alias(修复前 RED:复现同一 AttributeError; 修复后 GREEN:e2 固定成本 98,000 元 / 卡面 9.80 万)。