normalize_payroll
Normalize messy payroll spreadsheets into a standardized template for social insurance calculation, with automatic column detection and cross-entity/month merging.
Instructions
把文件夹内所有工资表整理成『社保测算标准模板』(xlsx) + 整理报告(md),按自然人跨主体跨月归并。
folder: 存放工资表的文件夹绝对路径。 output_dir: 产出目录(默认与 folder 相同)。 overrides_json: 可选 JSON 字符串,用于修正自动识别不了的文件,形如: {"某文件.xlsx": {"entity": "甲公司", "ym": "2025-03", "column_map": {"name": "员工", "gross": "税前总额", "id": 0}}} column_map 的值可为"表头文字"或列序号(从0起);字段名取标准字段: name/id/entity/ym/gross/total/unit_ss/net/stype/gjj_paid/gjj_base/gjj_ratio。
返回 JSON:产出路径、记录数、应发口径分布、需人工接管的文件清单、报告 markdown。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | ||
| output_dir | No | ||
| overrides_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |