修复发票PDF单页模板版式

This commit is contained in:
andy
2026-07-17 16:03:01 +07:00
parent 7dfaea7245
commit b24bfb5882
5 changed files with 213 additions and 29 deletions

View File

@@ -225,7 +225,7 @@ SourceMessage 原文和邮件会话完整正文已迁移到登录权限体系:
- PDF 上传到阿里云 OSS返回 `pdf_url``object_key``pdf_file_name``pdf_size_bytes``duration_millis`
- CP2 不落库,不提供转换历史查询;如果需要自动处理邮件附件,应先进入 M008 后续持久化任务和 worker checkpoint。
- M009 Manual Invoice 不调用上述调试接口,也不使用 `X-TH-Hotel-Document-Conversion-Key`;它通过登录 Bearer token、`RESERVATION_INVOICE_GENERATE` 权限和后端内部转换 Adapter 生成 PDF。
- M009 Manual Invoice 当前模板资源为 `server/src/main/resources/templates/reservation-invoice/proforma-invoice-v1.xlsx`,部署包必须包含该资源。
- M009 Manual Invoice 当前模板资源为 `server/src/main/resources/templates/reservation-invoice/proforma-invoice-v1.xlsx`,部署包必须包含该资源;模板为 A4 纵向单页版式,缺少字体或 LibreOffice 版本差异仍可能影响最终分页,测试环境上线后需用真实浏览器打开生成 PDF 复核
- M009 Manual Invoice 会写入 `workflow_reservation_invoice_generation`,上线前需确认 Flyway 已执行到 V22。
- M009 Manual Invoice 失败记录也可能保留已上传成功的 Excel / PDF object key排查或清理 OSS 生成物时应以生成记录为主,不只看 `SUCCEEDED` 状态。