wl-reclassify
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "wl-reclassify" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8dd1e33c63dca00fbd83a0d9fa1e2e61bb917e1475580c4fee2106b9af98e9ae. Verify the upstream source and version against https://skillhub.cn/skills/user_9a632140/tb-reclassify before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Performs reclassification of intercompany balances and group consolidation eliminations for Kingdee account balance reports. Processes Kingdee-exported account balance sheets (including accounting dimension details), aggregates intercompany account balances by supplier/customer dimension, performs bilateral booking determination, account reclassification (e.g., advance receipts → contract liabilities + recoverable output tax), and intra-group related-party elimination. Supports single-company or batch multi-company processing and outputs a complete 16-column audit working paper. Trigger examples: intercompany reclass, account balance reclass, bilateral booking, Kingdee account balance, group consolidation elimination, etc.
Introduction source: third_party · user_9a632140 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: wl-reclassify
description: >
金蝶科目余额表往来余额重分类与集团合并抵消。
处理金蝶导出的科目余额表(含核算维度明细),按供应商/客商维度汇总往来科目余额,
执行双边挂账判别、科目重分类(预收→合同负债+待转销项税额)、集团内关联方合并抵消。
支持单公司或批量多公司处理,输出完整16列审计工作底稿。
触发词:往来重分类、科目余额重分类、往来款重分类、双边挂账、金蝶科目余额表、
AR/AP reclass、应收账款重分类、预付应付重分类、集团合并抵消、关联方抵消、
预收账款重分类至合同负债。往来余额重分类与集团合并抵消
使用方式
单公司处理
修改 scripts/reclassify.py 顶部的 INPUT_FILE 路径,运行:
python scripts/reclassify.py
批量多公司处理(集团模式)
修改 scripts/batch_reclassify.py 中的 FILES 列表,运行:
python scripts/batch_reclassify.py
此脚本自动完成三步:重分类 → 合并抵消 → 供应商汇总。
输出文件:output/纽脉集团往来余额重分类工作底稿.xlsx(3个Sheet)
输出列结构(16列)
| 列 | 名称 | 说明 |
|---|---|---|
| A | 公司名称 | 从金蝶"账簿:"字段提取 |
| B | 科目代码 | 保留到二级 |
| C | 一级科目 | |
| D | 二级科目 | |
| E | 核算维度编码 | 供应商/客商编码 |
| F | 供应商/客商名称 | |
| G | 票据类型 | 已开票/暂估/预提 |
| H | 科目性质 | 资产/负债 |
| I | 配对组 | 应收组/应付组/其他组/仅列示 |
| J | 账面金额 | 原始期末净余额 |
| K | 重分类金额 | 科目+供应商重分类合计 |
| L | 调整后金额 | J+K |
| M | 重分类方向 | 转入资产/转入负债/双向对抵/预收账款重分类至合同负债/仅列示 |
| N | 备注 | CAS 14依据/双边挂账详情 |
| O | 合并抵消金额 | 集团内关联方抵消 |
| P | 合并抵消后金额 | L+O |
核心逻辑
科目范围
| 分类 | 科目 | 参与重分类 |
|---|---|---|
| 应收组 | 1122 应收账款, 2203 预收账款, 2204 合同负债, 2403.01 待转销项税额 | 是 |
| 应付组 | 1123 预付账款 ↔ 2202 应付账款 | 是 |
| 其他组 | 1221 其他应收款 ↔ 2241 其他应付款 | 是 |
| 仅列示 | 2801 预计负债 | 否 |
步骤1: 科目重分类(2203→2204+2403.01)
CAS 14新收入准则:预收账款(含税)→ 合同负债(不含税)+ 待转销项税额。
税率默认13%,纽脉生命科学×成都金蛟医疗科技特殊6%。
含税金额 = abs(2203净额)
不含税 = round(含税 / (1+税率), 2)
税额 = 含税 - 不含税
步骤2: 供应商双边重分类
- 按供应商+配对组汇总调整后余额
- 判定双边挂账:同组内既有资产又有负债余额
- 净额>0 → 转入资产(负债清零,资产吸收)
- 净额<0 → 转入负债(资产清零,负债吸收)
- 净额≈0 → 双向对抵
- 每组 sum(重分类金额) = 0
步骤3: 集团合并抵消
- 建立公司名→核算维度编码映射
- 对每对公司,计算双方净额
- 符号相反时,取较小绝对值抵消
- 按各行调整后金额比例分配抵消金额
- 抵消净额合计 = 0
修改配置
增减科目
修改 batch_reclassify.py 中的 ACCOUNT_CONFIG:
ACCOUNT_CONFIG = {
'1122': ('资产', '应收组', '应收账款', True),
'2204': ('负债', '应收组', '合同负债', True),
'2801': ('负债', '仅列示', '预计负债', False),
...
}
调整税率
修改 get_tax_rate 函数中的条件:
def get_tax_rate(company, vendor_name):
if company == '某公司' and '某供应商' in str(vendor_name):
return 0.06
return 0.13
新增公司
修改 FILES 列表和 intercompany_elim.py 中的公司名匹配逻辑。
兼容性
- 兼容金蝶12列和11列导出格式(自动检测列数)
- 兼容核算维度明细多级分组结构(自动前向填充科目编码)
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 专业财务审计工具,解决金蝶科目余额表往来重分类与集团合并抵消的实际痛点
- 面向审计/财务专业人员,解决明确的高频刚需任务
- 具备完整闭环:输入→处理→输出16列审计工作底稿
- 支持单公司与批量多公司场景
Highlights
- 触发词覆盖全面:包含中英文术语、具体场景、目标对象
- 边界清晰:明确限定于金蝶导出的科目余额表处理
- 变体覆盖充分:涵盖应收账款、预付应付、预收账款等多种子场景
Areas to improve
-
缺少 When to Use 独立章节 Reported severity: Minor
当前适用场景说明整合在“使用方式”中,建议单独设立 When to Use 章节以增强可读性
Recommendation: 建议单独设立 When to Use 章节,明确说明适用场景(如:审计底稿编制、集团合并报表准备等)
Highlights
- Phase/步骤清晰:明确分为三步(重分类→合并抵消→供应商汇总)
- 有出口条件:输出完整16列审计工作底稿
- 含端到端示例:提供单公司与批量处理两种使用方式
- frontmatter 完整:name/description 齐全
- 文档结构良好:包含使用方式、输出列结构、核心逻辑、配置修改、兼容性说明
Highlights
- 工具来源明确:Python 脚本,标准库处理
- 参数正确:科目配置、税率逻辑清晰
- 覆盖主要异常:兼容金蝶12列和11列导出格式,自动检测列数
- 不可逆操作有确认机制:输出为新的Excel文件,不修改原始数据
- 逻辑完整性:双边挂账判别、净额计算、抵消分配均有明确算法
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.