fapiao
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 "fapiao" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3862057f77a6fc478254bbd4d4724e3030e0445038f7911a845a282cded703c6. Verify the upstream source and version against https://skillhub.cn/skills/user_6671335b/fapiao 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
Automatically generate accounting vouchers from user-provided transportation invoice Excel data (including invoice number, payee, tax rate, invoiced amount, cost amount, sales and related fields) for voucher/bookkeeping of invoice income and costs. Follows v4 rules to assemble balanced debit/credit vouchers: 9% goods transport service (includes cost entries and staff-level cost split) and 6% value-added service (income only, no cost). Outputs in standard Excel format. Example trigger keywords: invoice bookkeeping, generate voucher from invoice, transportation bookkeeping, income-cost voucher, invoice income accounting, online-goods invoice voucher.
Introduction source: third_party · user_6671335b · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: 发票收入成本账务处理
description: >
网货运输业务发票收入与成本凭证自动生成。当用户提供运输业务发票Excel数据(含税票号码、受票方、税率、开票金额、成本金额、销售等字段),
要求生成凭证/做账/做收入成本账时触发。支持9%货物运输服务(含成本分录,按职员拆分)和6%增值服务(仅收入无成本)两种税率,
按v4规则自动装订为多张借贷平衡的会计凭证,输出标准Excel格式。
触发关键词:发票做账、发票生成凭证、运输业务做账、收入成本凭证、发票收入账务处理、网货发票凭证。发票收入成本账务处理 Skill
将网络货运平台的运输业务发票数据自动转换为符合财务规范的会计凭证列表。
适用场景
当用户以下述任一方式提出需求时,加载本Skill并执行:
- 提供运输业务发票 Excel 文件,要求 生成凭证 / 做账 / 做收入成本
- 话语中出现 「发票」「运单」「收入」「成本」「9%」「6%」 等关键词
- 需要将 开票金额 → 应收账款 + 主营业务收入 + 销项税额 的分录处理
数据源要求
输入文件必须是 .xlsx 格式,包含以下字段:
| 字段名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 税票号码 | 字符串 | ✅ | 发票唯一标识 |
| 受票方 | 字符串 | ✅ | 客户名称(开票抬头) |
| 税率 | 数字 | ✅ | 0.09(9%)或 0.06(6%) |
| 开票金额 | 数字 | ✅ | 含税金额(元) |
| 成本金额 | 数字 | ⚠️ 仅9%需要 | 各运单运输成本 |
| 销售 | 字符串 | ✅ | 业务员姓名 |
执行流程
Step 1:读取数据源
接收用户提供的 Excel 文件路径。用 read_file 或脚本直接 pd.read_excel 读取。
Step 2:调用核心脚本执行凭证生成
运行 scripts/gen_voucher.py 处理数据:
python scripts/gen_voucher.py <输入xlsx路径> [输出xlsx路径] [凭证日期YYYY-MM-DD]
参数说明:
- 输入路径:必填,用户提供的发票数据源
- 输出路径:可选,默认为
{原名}凭证列表.xlsx,放在同目录下 - 凭证日期:可选,默认当月最后一天
脚本会自动:
- 按 9% 和 6% 分离数据
- 分别按对应规则生成分录
- 装订为不超40行的凭证(不拆分组合)
- 验证每张凭证借贷平衡
- 输出标准格式的 Excel 文件
Step 3:结果验证与汇报
脚本执行后,向用户汇报:
- 📊 总览:客户数、总金额、税率分布
- 💰 金额明细:开票总额、不含税收入、销项税额、成本合计
- 📋 凭证明细表:凭证字号、行数、借/贷方合计
- ✅ 平衡校验:所有凭证是否借贷平衡
- 📁 输出文件路径
Step 4:交付结果
使用 open_result_view 展示生成的凭证列表 xlsx 文件。
核心规则速查
详细规则见 references/voucher_rules.md,以下是关键要点:
| 维度 | 9%(货物运输) | 6%(增值服务) |
|---|---|---|
| 收入科目 | 60010101 货物运输服务收入 | 60010102 增值服务收入 |
| 应收科目 | 11220101 网络货运业务 | 11220103 增值服务费 |
| 销项税科目 | 22210303 | 22210102 |
| 成本分录 | ✅ 有(64010101→11230101) | ❌ 无 |
| 收入合并维度 | 受票方一致即合并 | 受票方+项目+职员一致 |
| 成本拆分维度 | 按职员分组 | — |
| 凭证编号 | 独立 记-0001起 | 独立 记-0001起 |
辅助核算统一规则
- 客户 = 受票方字段
- 项目 = 统一填「公海项目」
- 职员 = 销售字段
注意事项
- 不含税金额必须逐票计算后再汇总,不同税率不能混算
- 凭证装绝不拆分同一客户组合(会导致借贷不平)
- 9%和6%必须分开编号,各自从记-0001开始
- 若数据中只有一种税率,仅生成该税率的凭证即可
- 输出文件列顺序固定:凭证字号、凭证日期、借贷、摘要、科目编码、科目名称、借方金额、贷方金额、辅助核算_客户、辅助核算_项目、辅助核算_职员、发票数、运单数
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向网络货运平台财务做账高频刚需场景
- 自动化发票数据到会计凭证转换,显著提升效率
- 支持9%和6%两种税率,覆盖主要业务类型
Highlights
- 触发关键词覆盖全面,包括发票做账、运输业务做账等
- 边界清晰,不易与其他Skill混淆
Areas to improve
-
缺少端到端示例 Reported severity: Minor
文档中缺少输入输出样例展示
Recommendation: 建议补充一个完整的输入Excel样例和对应的输出凭证列表样例
-
文档过长 Reported severity: Minor
文档约450行,超出推荐长度
Recommendation: 建议将部分详细说明移至references目录下的独立文档
Highlights
- 执行流程步骤清晰,包含Step 1-4完整流程
- 核心规则速查表便于快速理解
Areas to improve
-
异常处理机制不明确 Reported severity: Major
未说明文件格式错误、字段缺失、数据校验失败等异常情况的处理方式
Recommendation: 建议在脚本中增加数据校验和异常处理,并在文档中说明常见错误及解决方案
Highlights
- 核心脚本路径明确,参数说明清晰
- 支持可选参数默认值,提升易用性
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.