erp-customer-statement

Generates customer statements including sales, receipts, ending accounts receivable balances, and variances. Corresponds to the ERP menu function "Sales Customer Statement." Triggered when a user asks about sales customer reconciliation in the ERP.

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 "erp-customer-statement" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-738b11a0ac50ef0f6035249225e5fbf136dfc55f522c6e597dd8ddab03a71105. Verify the upstream source and version against https://skillhub.cn/skills/org-6ajwimzk/erp-2-v2 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

Generates customer statements including sales, receipts, ending accounts receivable balances, and variances. Corresponds to the ERP menu function "Sales Customer Statement." Triggered when a user asks about sales customer reconciliation in the ERP.

0 Downloads

Introduction source: third_party · org-6ajwimzk · 1.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: erp-customer-statement
description: >-
  生成客户对账单:销售、收款、期末应收余额与差异。 对应 ERP 菜单功能「销售客户对账」。当用户询问 ERP 中的 销售客户对账 相关信息时触发。
agent_created: true

Skill: ERP 菜单功能 · 销售客户对账

触发场景

当用户用自然语言询问以下类型的问题时,应加载本技能并执行对应的 ERP 查询/操作:

  • 典型示例:"导出便民超市本月对账单"
  • 口语变体:同义表达(如"库存"→"存量"/"余量"、入库→"进货"/"收货"、出库→"出货"/"发货"、收款→"回款"/"进账"等)
  • 菜单匹配:输入"菜单"/"功能菜单"/"帮助"/"?" 时展示全部功能列表

功能定位

生成客户对账单:销售、收款、期末应收余额与差异。

路由映射

调用后端服务 ReplenishmentAssistant.handle() 时传入:

params = {"action": "customer_statement", "entities": {...}}
  • action: "customer_statement"
  • entities: 按以下实体槽位填充(由后端 NLPEngine.parse() 自动完成,本技能仅告知需要抽取的实体)

实体抽取

需要在 NLP 意图中提取以下实体槽位(由 _extract_entities 自动解析,LLM 路径下由模型直接输出 JSON):

  • partner
  • time_range

返回格式

返回的 dict 包含至少以下字段:

  • reply: 格式化的回复文本(含 Markdown 表格/列表)
  • action: 当前执行的动作名称(用于路由追踪)

回复中会自动追加「📊 智能分析与建议」段(含分析结论 + 可行动建议),由 _make_analysis() 统一处理。

注意事项

  1. 所有查询接口支持 time_range(默认最近 30 天)和 top_n(默认 10 条)参数
  2. 时间范围口语解析:本月/上月/本周/上周/今年/最近N天/前N天
  3. 当 .env 中 AI_API_KEY 为有效值时,回复自动走 LLM 增强分析;否则降级为规则引擎兜底
  4. 写操作类(开单/审批/申请)只生成草稿+预览,不直接写入 ERP 数据库 yszt 账套
  5. 数据来源:H3ERP SQL Server 账套 yszt

依赖

启动后端服务后才能使用:

# 方式一:双击 start.bat
D:\辉煌\start.bat

# 方式二:手动启动
D:\辉煌\workbuddy_erp_sales\.venv\Scripts\python.exe run_server.py

相关文件

  • procurement_scenarios/replenishment_assistant.py — 主 handler(路由 + 查询 + 格式化)
  • ai_dialog_layer/nlp_engine.py — 自然语言解析(LLM 优先 / 规则兜底)
  • erp_core/h3erp/service.py — H3ERP 真实数据查询(真实库路径)
  • erp_core/procurement/service.py — 演示数据路径(H3ERP_ENABLED=false 时)

Current listing version

1.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决企业 ERP 客户对账刚需,实用性强
  • 功能定位清晰,受众明确
Trigger Precision85/100

Highlights

  • 触发场景描述清晰,含典型示例和口语变体
  • 边界较清晰,覆盖合理
Structure and Standards92/100

Highlights

  • 结构完整,Phase/步骤清晰
  • frontmatter 完整,有端到端示例
Execution Reliability88/100

Highlights

  • 工具来源和参数定义清晰
  • 覆盖主要异常,有降级机制
  • 不可逆操作有确认机制
Evidence Verifiability (mean of the first four)86/100

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.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

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.