SuperAPI AI Directory

triple-match-automation-ap

General & other

View repository

Updated 10-16 08:46

About this skill

Load context

On first use: Read ../../CLAUDE.md to obtain scenario-level configuration (three-way match rules/discrepancy tolerance).


/triple-match-automation-ap — Accounts payable three-way match

Examples

→ Example: The user says "I received a supplier invoice, help me check it against the PO and goods receipt note to see whether the amounts match," and the system should invoke this skill to perform the three-way match and identify discrepancies.

→ Example: The user says "The invoice amount is 5,000 yuan more than the PO, and the business says the price was negotiated verbally later," and the system should invoke this skill to assess the nature of the discrepancy and provide handling recommendations.

→ Example: The user says "The three-way match system has just gone live, help me sample a few cases to verify whether the matching logic is correct," and the system should invoke this skill to perform sample verification of the three-way match.

Three-way match principles

三单:
  PO(Purchase Order):采购订单(合同条款)
  GRN(Goods Receipt Note):收货单(实际收货数量)
  Invoice:供应商发票(供应商开票金额)

匹配逻辑:
  PO 数量 = GRN 数量 = Invoice 数量 → 完全匹配
  PO 单价 × GRN 数量 = Invoice 金额 → 金额匹配

差异类型:
  数量差异:发票数量 vs GRN 数量 vs PO 数量
  金额差异:发票金额 vs PO 金额(含税/不含税)
  价格差异:发票单价 vs PO 单价
  税率差异:发票税率 vs PO 约定税率

Step 1: Obtain the three documents' data

Obtain the purchase order from [PO]:

查询条件:采购订单号

PO 信息:
  - 供应商名称
  - 物料/服务描述
  - PO 数量
  - PO 单价(含税/不含税)
  - 税率
  - 付款条款
  - 合同约定的价格调整条款

Obtain the goods receipt records from [RCV]:

查询条件:采购订单号 / 发票号

GRN 信息:
  - 实际收货数量
  - 收货日期
  - 收货仓库/验收人
  - 是否有部分收货
  - 是否有退货

Obtain the supplier invoice from [INV]:

查询条件:发票号码 / 供应商名称

Invoice 信息:
  - 发票号码
  - 开票日期
  - 金额(含税/不含税)
  - 税率
  - 物料/服务描述
  - 发票状态(正常/作废/红冲)

Step 2: Quantity match

PO 数量:[X]
GRN 数量:[Y]
Invoice 数量:[Z]

数量匹配结果:
  - Z = Y = X:✅ 完全匹配
  - Z = Y < X:⚠️ 部分交货(按实际数量结算)
  - Z < Y:❌ 发票数量少于收货数量(联系供应商)
  - Z > Y:❌ 发票数量多于收货数量(不合理的部分不付款)

处理方式:
  - 按 GRN 数量作为基准(实际收货数量)
  - Invoice 金额按 GRN 数量调整

Step 3: Price match

PO 单价(不含税):[X元]
GRN 数量:[Y]
PO 金额(不含税)= X × Y:[XXX元]
PO 税额(13%):[XXX元]
PO 价税合计:[XXX元]

Invoice 金额(不含税):[XXX元]
Invoice 税额:[XXX元]
Invoice 价税合计:[XXX元]

差异金额(不含税):[XXX元](Invoice - PO)
差异率:[X%]

差异判断:
  |差异率| ≤ [X]%(如 1%):
    → ✅ 可接受,AP 主管审批后可付款
  |差异率| > [X]%:
    → 🔴 须联系供应商确认,必要时重新开票

Step 4: Tax rate match

PO 约定税率:[13%]
Invoice 税率:[9%]

税率差异影响:
  - 税额减少:[XXX元]
  - 我方进项抵扣减少:[XXX元]
  - 实际成本增加:[XXX元]

处理方式:
  → 🔴 税率开低(如 13% → 9%)属于供应商少交税
  → 须联系供应商重新开具正确税率的发票
  → 在收到正确发票前,不予付款

Step 5: Generate the match conclusion

═══════════════════════════════════════
三单匹配报告
发票号码:[INV-XXXXXX]
供应商:[供应商名称]
采购订单:[PO-XXXXXX]
匹配日期:[YYYY-MM-DD]
═══════════════════════════════════════

【三单数据】

采购订单(PO):
  数量:[X] | 单价:[XX元] | 金额:[XXXX元] | 税率:[13%]

收货单(GRN):
  数量:[X] | 收货日期:[YYYY-MM-DD]

供应商发票(Invoice):
  数量:[X] | 金额:[XXXX元] | 税率:[13%]

【数量匹配】

PO vs GRN vs Invoice:
  PO=[X] / GRN=[X] / Invoice=[X]
  结果:[✅ 完全匹配 / ⚠️ 部分匹配 / ❌ 差异]

【价格匹配】

PO 金额(不含税):[XXXX元]
Invoice 金额(不含税):[XXXX元]
差异:[XXX元]([+X%])
结果:[✅ 可接受 / 🔴 须核查]

【税率匹配】

PO 税率:[13%]
Invoice 税率:[13%]
结果:[✅ 一致 / 🔴 税率错误]

【匹配结论】

综合结论:[✅ 通过 / ⚠️ 有条件通过 / ❌ 不通过]

可付款金额:[XXXX元]
暂不付款:[XXXX元](差异部分)
原因:[...]

【处理建议】

如有不通过项:
  1. [处理建议一]
  2. [处理建议二]

下一步:[联系供应商重新开票 / AP主管审批后付款 / ...]

═══════════════════════════════════════
置信度:[✅ 高 / ⚠️ 中 / 🔴 低]
═══════════════════════════════════════

Escalation trigger conditions

  • Amount discrepancy > [fill in: e.g., 10,000 yuan] and no reasonable explanation
  • Incorrect tax rate (invoice tax rate < tax rate agreed in the PO)
  • Invoice quantity > received quantity
  • Supplier refuses to reissue the invoice
  • The same supplier has three consecutive three-way mismatches

Finance Skills — triple-match-automation-ap atomic skill