feat: 新增每日进销存业务库校验脚本 #57

Merged
youruo merged 1 commits from codex/validate-daily-inventory-biz-1007 into main 2026-10-07 17:04:36 +08:00
Collaborator

内容

  • backend/scripts/validateDailyInventoryFromBiz.js:直连业务库(凭据经隧道从系统库 database_configs 现取,不落盘)
  • 反算 4 个可还原的流水列与 daily_inventory_official 逐仓比对;期末库存与 rpt.jst_inventoryInfo 全仓比对
  • 落实约定:校验类需求默认走业务库,不启浏览器取聚水潭

验证

  • 2026-10-06 实测:期末 24 仓中 23 仓完全一致(合计差 0.000%);10-05 回归通过
  • 仅新增独立脚本,不影响任何现有功能

授权

用户 2026-10-07 要求后续校验一律走业务库,脚本随本次一并入库。

## 内容 - backend/scripts/validateDailyInventoryFromBiz.js:直连业务库(凭据经隧道从系统库 database_configs 现取,不落盘) - 反算 4 个可还原的流水列与 daily_inventory_official 逐仓比对;期末库存与 rpt.jst_inventoryInfo 全仓比对 - 落实约定:校验类需求默认走业务库,不启浏览器取聚水潭 ## 验证 - 2026-10-06 实测:期末 24 仓中 23 仓完全一致(合计差 0.000%);10-05 回归通过 - 仅新增独立脚本,不影响任何现有功能 ## 授权 用户 2026-10-07 要求后续校验一律走业务库,脚本随本次一并入库。
youruo added 1 commit 2026-10-07 17:03:49 +08:00
- backend/scripts/validateDailyInventoryFromBiz.js <业务日>...
- 直连业务库(凭据经隧道从系统库 database_configs 现取,不落盘):
  反算 4 个可还原的流水列(销售出仓/销售退货/采购进仓/采购退货),
  与 daily_inventory_official 逐仓比对;期末库存与 jst_inventoryInfo 全仓比对
- 约定:校验类需求默认走业务库,不启浏览器取聚水潭
youruo merged commit e71607386d into main 2026-10-07 17:04:36 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunanting/cangku#57
No description provided.