e-invoice-to-accounting-voucher-auto-generate
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 "e-invoice-to-accounting-voucher-auto-generate" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2545d02716ba81b921f132b06ca5c899d6f8cad7cfb73ac146f27d86015e2cc2. Verify the upstream source and version against https://skillhub.cn/skills/user_9355e276/shdskill15 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 extract information from electronic invoices for purchased goods/services, match account balance subjects, and generate accounting voucher templates importable into financial systems. Supports OFD, PDF, and XML invoice formats.
Introduction source: third_party · user_9355e276 · 2.1.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: e_invoice_to_accounting_voucher_auto_generate
description: |
从购入商品/服务电子发票自动提取信息,匹配科目余额表,生成财务系统可导入的记账凭证模板。 支持 OFD、PDF、XML 三种电子发票格式。
version: 2.1.0
author: shdskill
tags:
- 电子发票
- 记账凭证
- 财务处理
- 凭证导入模板
- 批量生成
- 发票提取
- e-invoice
- voucher
category: 财务处理
platforms:
- WorkBuddy
triggers:
- 采购发票记账凭证
- 费用发票记账凭证
- 购入发票记账凭证
- 发票生成凭证
- 采购发票凭证
- 发票自动生成记账凭证
install_method: upload购入商品或服务电子发票自动生成记账凭证
触发方式
用户说出以下任一关键词即触发本技能:
- "采购发票记账凭证"
- "费用发票记账凭证"
- "购入发票记账凭证"
- "发票生成凭证"
- "采购发票凭证"
- "发票自动生成记账凭证"
运行环境
- Python 3.9+
- 依赖:openpyxl, xlrd, PyPDF2, pdfplumber
AI 启动方式
当用户触发本技能时,AI 必须执行:
-
先安装依赖:
pip install -r scripts/requirements.txt使用 managed Python(推荐):
# 安装依赖到 managed venv <managed_python_pip> install -r <skill_dir>/scripts/requirements.txt -
然后启动主程序:
python scripts/main.py使用 managed Python(推荐):
<managed_python> <skill_dir>/scripts/main.py
重要:不要用 show_widget 弹窗,不要用 sendPrompt。直接启动 Python tkinter GUI 主程序。工作目录需设为技能根目录。
文件结构
scripts/
├── main.py # 主程序(tkinter GUI + 发票解析 + 凭证生成)
├── requirements.txt # Python 依赖
操作流程
程序启动后,会依次弹出窗口引导用户完成以下步骤:
步骤1:选择四份文件
| 文件 | 格式 | 说明 |
|---|---|---|
| 购入商品/服务电子发票 | OFD / PDF / XML | 支持多选,可混合格式 |
| 全部展开/最末级的科目余额表 | Excel (.xlsx/.xls) | 需含科目编码和科目名称 |
| 凭证导入模板 | Excel (.xlsx/.xls) | 财务系统标准模板 |
| 导入模板必输信息批量补充填充信息表(只输入映射规则即可) | Excel (.xlsx/.xls) | 项目+映射规则两列 |
步骤2:自动提取发票信息并生成中间表
- 自动解析 OFD(解压读取 XML)、PDF(pdfplumber 表格/文本提取)、XML(ElementTree)发票
- 读取科目余额表构建科目映射
- 生成「发票信息提取表.xlsx」保存到桌面
- 提取表包含:发票类型、发票号码、日期、销售方、商品明细、金额/税率/税额/价税合计等
- 发票类型会自动识别为「电子发票(普通发票)」或「电子发票(增值税专用发票)」
- 借方一级科目、明细科目、科目编号三列为空,需用户手工填写
步骤3:用户手工补充科目信息
- 在生成的 Excel 中填写每行的「借方一级科目」「明细科目」「科目编号」
- 保存并关闭 Excel
步骤4:自动生成凭证导入模板
- 读取编辑后的提取表
- 根据模板表头生成借贷分录
- 普通发票:借方使用用户填写的科目编号,金额为价税合计;贷方按销售方名称搜索科目余额表。
- 增值税专用发票:自动生成三条分录:
- 借:费用/成本科目(金额 = 不含税金额)
- 借:进项税额(金额 = 税额,按税率在科目余额表「进项税额」下查找对应科目)
- 贷:应付账款/销售方对应科目(金额 = 价税合计)
- 若找不到对应税率的进项税额明细科目,会退回普通发票逻辑并提示。
- 输出「记账凭证导入模板_YYYYMMDD_HHMMSS.xlsx」到桌面
补充填充信息表格式
| 项目 | 映射规则 |
|---|---|
| *凭证编号 | 从00001开始顺延 |
| *凭证类型编号 | 统一编号为01 |
| *制单人 | 统一编号为0001 |
输出文件
- 发票信息提取表.xlsx — 中间表,含发票明细和空白的科目列
- 记账凭证导入模板.xlsx — 最终输出,每张发票根据发票类型生成 2 条或 3 条分录
Current listing version
2.1.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决财务人员高频痛点:电子发票自动提取与记账凭证生成
- 支持 OFD/PDF/XML 三种主流电子发票格式,覆盖广泛
- 完整工作流闭环:提取→人工补充→自动生成→输出模板
Highlights
- 触发词覆盖全面,包含多种用户表达变体
- 边界清晰,不易与其他财务类 Skill 混淆
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档中未明确说明适用场景和使用前提
Recommendation: 建议补充 When to Use 章节,说明适用企业规模、财务系统类型等前提条件
-
缺少完整端到端示例 Reported severity: Minor
虽有流程说明,但缺少完整示例文件或截图
Recommendation: 建议补充一个完整流程的示例文件或截图,帮助用户理解整个操作流程
Highlights
- Phase/步骤清晰,逻辑连贯
- frontmatter 完整,包含所有必要元数据
- 有明确出口条件和输出文件说明
Highlights
- 工具来源明确,依赖清晰
- 覆盖主要异常场景(如找不到进项税额科目)
- 不可逆操作有用户确认机制(需手工补充科目信息)
- 推荐使用 managed Python 避免环境冲突
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.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 53
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
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.