Tax & Finance AI Solutions

Delegate non-standard invoice and contract parsing to multimodal extraction, while locking tax splitting, four-way matching, Golden Tax Phase IV scans, and metric math inside deterministic rule engines. Balanced vouchers enter ERP pending review; high-risk variances and credit-note exceptions stop for finance sign-off.

Four-Way Matching ↔ Voucher Workbench (Parsing & Math Isolated)Yonyou / Kingdee / SAP Ready · Leqi & Baiwang Channels · Human Sign-Off Before Posting
Non-Standard Invoice OCR
Tax Ledger Verified

Multimodal parsing for e-VAT invoices, cross-page sealed contracts, and bank slips with automatic deduplication and vendor alias mapping.

E-VAT Invoice No.
#263100041982
Linked Contract / Rate
#CT-809 · 13% VAT
Tax-Exclusive Amount
¥371,681.41
VAT / Gross Total
¥48,318.58 / ¥419,999.99
Four-Way Price & Tax Intercept
1 Exception Flagged

Deterministic rules reconcile contracts, POs, receipts, and bank slips; out-of-tolerance deltas and missing credit-note docs freeze immediately.

#PO-45019 ↔ #GR-992 ReconciledCleared ¥0.01

Two split receipts total 3,000 units (contract ¥420,000.00); ¥0.01 allocation delta cleared automatically within ±¥0.05 tolerance.

Credit Note #CN-202611-019 HeldDelta -¥14,200.00

Discount credit note lacks Red-Ink Confirmation ID and mismatches bank receipt #BK-7741; frozen and routed for review.

Deterministic Accrual Draft
Pending Review

Python/Java rule code maps chart-of-accounts entries and enforces zero-imbalance drafts; LLMs never touch arithmetic.

Draft #PZ-202611-0842Dr/Cr Diff 0.00
Dr: Raw Materials (1403)¥371,681.42
Dr: VAT Payable - Input Tax¥48,318.58
Cr: AP - Huadong Precision (2202)¥420,000.00

FINANCE WORKFLOWS

Semantic Parsing Separated from Deterministic Accounting, Pre-Filing Scans & Schema-Locked ChatBI

Language models never perform arithmetic or run unrestricted SQL. Above, multimodal extraction hands off to deterministic code; below, Golden Tax Phase IV pre-filing scans and locked-metric ChatBI run side by side.

TWO-LAYER DECOUPLED ACCOUNTING

Multimodal Parsing + Deterministic Rule Calculation

Across non-standard procurement contracts, cross-page sealed scans, and goods receipts with inconsistent vendor aliases, multimodal models handle only field extraction and SKU normalization. Extracted payloads pass straight into Python/Java rule code for tax splitting, price-by-quantity verification, rounding allocation, and trial balancing — ensuring every figure is reproducible and auditable.

Multimodal Parsing Boundary
Handles layout restoration, non-standard itineraries/invoices, contract unit-price localization, and vendor/material synonym matching only.
Deterministic Rule Code Boundary
Executes tax-rate conversion, cumulative split-receipt clearing, ±¥0.05 rounding tolerance rules, GL account dictionary mapping, and debit/credit balance checks.
Live Four-Way Trace: Contract ↔ Goods Receipt ↔ Invoice ↔ Bank SlipFull Match Passed · Chain Intact
Contract Flow · Master Procurement Agreement #CT-2026-0809Clause Extraction · Rate Locked

Vendor "Huadong Precision Components Co., Ltd.", tax-inclusive unit price ¥140.00 / unit (13% VAT special invoice), monthly settlement upon complete document set across split deliveries.

Goods Flow · WMS Split Receipts #GR-992A / #GR-992BCleared 3,000 Units

Two actual receipts total 3,000 units (1,800 + 1,200); deterministic rule code computes expected tax-inclusive settlement: 3,000 × ¥140.00 = ¥420,000.00.

Invoice Flow · 3 Split Digital VAT Invoices (#263100041982 et al.)¥0.01 Penny Variance Cleared

Verified via Leqi tax ledger with zero duplicates; line-level conversion yields ¥371,681.41 net + ¥48,318.58 VAT, a ¥0.01 rounding delta vs. ¥420,000.00 auto-allocated to rounding variance.

Cash Flow · Bank E-Receipt #BK-202611-8831Payment Matched · Ready for ERP

Payee "Huadong Precision Components" matches vendor master data; ¥420,000.00 paid aligns with all four flows. AP/clearing voucher draft #PZ-202611-0842 generated for accountant sign-off.

PRE-FILING TAX AUDIT

Golden Tax Phase IV Cross-Tax Scan

Automatically scans input VAT pools, output VAT returns, IIT withholding filings, and contract stamp duty ledgers prior to filing, flagging cross-schedule variances and consecutive void anomalies with statutory citations for tax accountant confirmation.

Input VAT · Consecutive Voids & Credit Notes1 Blocked

Upstream vendor recorded 6 consecutive void-and-reissues this month; credit-note #CN-202611-019 (-¥14,200.00) lacks a Red-Ink Confirmation Form ID and is frozen for tax review.

Output Revenue ↔ P&L Operating RevenueBalanced

All taxable sales on the current VAT return reconcile entity-by-entity against P&L operating revenue, with zero unbilled revenue omissions or period-cutoff variance (delta 0.00).

Supplemental Agreements ↔ Stamp Duty BaseAccrual Flagged

Cross-check against OA contract ledgers flagged 2 supplemental procurement agreements raising total contract value by ¥860,000.00 not yet accrued on the stamp duty workpaper.

IIT Payroll Filing ↔ Accrued Salaries Payable1 Timing Delta

Comparing e-tax withholding payroll totals against debit entries in Accrued Salaries Payable surfaced 1 cross-month bonus payout timing difference with employee-level detail attached.

LOCKED METRIC DEFINITIONS

Schema-Locked Financial ChatBI

LLMs are blocked from writing arbitrary SQL. Each operating metric locks its exact formula and ledger scope in the semantic layer; user questions bind strictly to approved metric parameters and drill straight down to underlying accounting vouchers.

Bound Metric · Net Gross MarginSingle SQL Definition

(Operating Revenue - Operating Cost - Taxes & Surcharges) / Operating Revenue

Excludes intercompany transfer revenue by rule; aggregated on post-elimination management basis

Bound Metric · Days Sales Outstanding (DSO)Single SQL Definition

(Ending Net AR + Notes Receivable) / Trailing 12M Tax-Inclusive Revenue × 365

Automatically injects WHERE filters for the current operator's authorized legal entities and books

Drill-Down Example · East China BU Q3 Net Gross Margin & DSOConsolidated Basis

Locked SQL template returns: Net Gross Margin 24.8% (-1.3 pct YoY), DSO 68 days — and automatically lists high-variance cost vouchers #PZ-09-1104 and #PZ-09-1482.

RECONCILIATION FLOW

How Four Parallel Document Tracks Converge Through the Price-Tax Rule Gate

Contract, goods receipt, invoice, and payment tracks flow in parallel into the deterministic price-tax rule gate for tax splitting and tolerance checks; compliant sets output ERP voucher drafts while credit-note and void anomalies branch to the exception queue.

Four Parallel Document Tracks

Contracts, WMS goods receipts, digital/non-standard invoices, and bank slips extract fields concurrently and align vendor and SKU codes.

Deterministic Price-Tax Rule Gate

Python/Java code performs tax splitting, ±¥0.05 rounding clearing, Red-Ink Confirmation checks, and cross-tax anomaly scans.

ERP Pending Voucher Draft · Matched sets generate balanced entries written back to Yonyou / Kingdee / SAP pending review.

Variance & Void Hold Ticket · Missing credit-note IDs or out-of-tolerance prices freeze posting and route to finance and tax staff.

COMPARISON

Manual / Legacy OCR+RPA vs. AIFenceng Tax & Finance Rule Workflow

Legacy scripts rely on fixed coordinates and rigid string matching, breaking on non-standard contracts or penny deltas; AIFenceng decouples multimodal understanding from deterministic rule math with clear boundaries.

Non-Standard Invoices & Contract Parsing

Manual / Legacy OCR+RPA

Manual transcription and line-by-line checking; template-based OCR breaks on supplemental agreements, non-standard itineraries, or cross-page seal scans.

AIFenceng Finance Workflow

Multimodal models restore layout and extract clauses, normalize vendor and SKU aliases, and verify authenticity/duplicates directly against Leqi and Baiwang tax channels.

Four-Way Matching & Rounding Variances

Manual / Legacy OCR+RPA

Manual spreadsheet lookups across ERP and WMS; rigid RPA field matching aborts and falls back to staff on many-to-one invoices, split receipts, or ¥0.01 rounding deltas.

AIFenceng Finance Workflow

Automatically links contracts, split goods receipts, invoices, and bank slips; clears rounding deltas within tolerance and intercepts credit-note gaps or out-of-bounds exceptions.

Tax Math & ChatBI Metric Governance

Manual / Legacy OCR+RPA

Manual pivot tables or static dashboards with next-day turnaround for ad-hoc questions; letting generic LLMs compute numbers or write arbitrary SQL corrupts metric definitions.

AIFenceng Finance Workflow

Parsing and math stay strictly separated: arithmetic and trial balancing run in deterministic code; ChatBI locks onto predefined SQL metric templates with voucher drill-down.

Pre-Filing Risk Blocking & Audit Trail

Manual / Legacy OCR+RPA

Tax accountants spot-check returns before filing, often missing cross-tax schedule variances; scripts leave system logs without business rationale or audit evidence chains.

AIFenceng Finance Workflow

Scans input VAT, output VAT, IIT, and stamp duty differences in full before filing with statutory citations; every approval, variance clearing, and hold preserves source snapshots.

BOUNDARIES

Non-Invasive ERP Integration, Math Isolation & Intranet Deployment Boundaries

Expand for ERP integration, zero-LLM-math rules, Xinchuang isolation & audit snapshots

When connecting to Yonyou, Kingdee, or SAP, do we need to modify core ERP or replace finance approval flows?
No core ERP code changes or approval workflow replacements are required. The system reads business documents from Yonyou (BIP / U8 / NC), Kingdee (Cloud Galaxy / Cosmic), SAP S/4HANA, Weaver OA, and Huilianyi via standard APIs, staging views, or file adapters. Generated accrual and AP vouchers are written back strictly as pending drafts, preserving final review and posting control with your finance team.
Why insist on 'never letting LLMs do accounting math'? What does each layer handle?
Language models excel at reading unstructured text and resolving semantics, but remain probabilistic on floating-point arithmetic, rounding control, and strict accounting rules. We isolate the two: multimodal models only extract invoice/contract fields, resolve vendor/item synonyms, and classify query intent; all tax splitting, unit-price multiplication, rounding allocation, and trial balancing run in unit-tested Python/Java deterministic code.
How are financial data and tax ledgers isolated on-prem, and how are multi-entity permissions enforced?
The entire stack supports air-gapped private deployment on corporate servers or domestic Xinchuang compute (Huawei Ascend, Hygon). Invoices, contracts, bank statements, and trial balances never leave your intranet or train external models. Multi-entity groups configure RBAC/ABAC row- and field-level permissions by ledger book, legal entity, and department, constraining ChatBI queries strictly to the operator's authorized scope.
During an audit, can reviewers trace why a specific voucher was approved or variance-cleared?
Yes. Every four-way match, tolerance adjustment, Golden Tax Phase IV hold, and manual override freezes a snapshot of the linked contract clause, goods receipt IDs, tax-ledger verification status, rule version, and variance calculation trace. Internal audit or external CPAs can query by voucher number and trace directly down to the original evidence chain.

EXECUTIVE SUMMARY

Core Value & Integration Boundaries

Layered across scenarios, workflows, and data permissions for predictable ROI

Key Pain Points

Bottlenecks in manual review & brittle scripts

  • VAT special invoices, fully digitalized e-invoices, non-standard itineraries, and procurement contracts arrive mixed together, making manual four-way checks slow and unit-price drift, tax-rate errors, or duplicate claims hard to catch early
  • Split deliveries and credit-note adjustments frequently trigger rounding penny variances and missing Red-Ink Confirmation Forms, causing brittle OCR and RPA scripts to break on layout shifts
  • Cross-schedule reconciliation across VAT, corporate income tax, stamp duty, and financial statements relies on pre-filing spot checks, delaying detection of mismatched tax codes, consecutive voided invoices, and cross-period credit notes
  • Management reporting still requires exporting ERP tables for manual pivots, while letting general-purpose LLMs compute totals or write free-form SQL risks arithmetic errors and inconsistent metric definitions

Measurable Outcomes

Auditable operational improvements post-launch

  • LLMs only extract text and clauses from non-standard documents; tax-exclusive splitting, split-batch clearing, rounding tolerance, and debit/credit balancing execute strictly in deterministic Python/Java rule code
  • Automatically reconciles contract, goods receipt, invoice, and bank slip amounts, clears penny variances within tolerance, and freezes credit-note gaps or out-of-tolerance discrepancies for human review
  • Runs pre-filing scans across input VAT, output VAT, IIT, and stamp duty with statutory references attached, while powering ChatBI queries bound to locked SQL semantic metric definitions
  • Integrates with Yonyou, Kingdee, or SAP without modifying core ERP code — reading via standard APIs or staging views and writing back pending voucher drafts, with support for air-gapped on-prem and Xinchuang compute

Target Scenarios

Start with a single module or combine workflows

  • Procurement four-way cross-matching and ERP accrual/AP voucher draft generation
  • Golden Tax Phase IV pre-filing compliance scan across input VAT, output VAT, IIT, and stamp duty
  • Schema-locked SQL semantic ChatBI queries with drill-down to source accounting vouchers
  • Multi-bank e-receipt matching and exception queues for credit-note variances

FAQ & GOVERNANCE

Frequently Asked Questions

Q1

How do you prevent LLMs from miscalculating tax amounts, forcing balances, or fabricating GL accounts?

The architecture strictly decouples document understanding from accounting math. Multimodal models only extract structured fields from scanned invoices, PDF contracts, and non-standard slips without performing arithmetic. Tax splitting, split-delivery clearing, ±¥0.05 rounding tolerance, and trial balancing run entirely in deterministic Python/Java rule code. ChatBI binds to a predefined SQL semantic metric layer so the model can only select locked metrics and filters rather than inventing formulas.

Q2

Can it integrate non-invasively with Yonyou, Kingdee, or SAP without altering existing ERP ledger logic?

Yes. Core ERP code and approval authorities remain untouched. The system ingests source documents via standard APIs, staging database views, or file adapters from Yonyou (BIP / U8 / NC), Kingdee (Cloud Galaxy / Cosmic), SAP S/4HANA, Weaver OA, Huilianyi, and tax channels like Leqi, Baiwang, and Nuonuo. Generated accrual or AP vouchers are written back strictly as pending drafts, leaving final review and posting with your accountants.

Q3

Financial ledgers, procurement contracts, and tax filings are highly sensitive. Do you support air-gapped intranet and Xinchuang environments?

Yes. Full private deployment is supported inside air-gapped corporate intranets as well as domestic Xinchuang compute environments such as Huawei Ascend and Hygon. Invoice ledgers, original contracts, bank statements, and trial balances stay on enterprise-owned servers — never sent to public clouds or used for model training. Row- and field-level RBAC/ABAC isolation by legal entity, ledger book, and department is enforced with full audit logging.

Q4

What is required to pilot just one workflow first, such as four-way matching or pre-filing tax scanning?

Each workflow operates independently and can start with your highest-priority bottleneck. For an initial validation, we only need a small batch of anonymized historical records (e.g., VAT/e-invoice XML or scans with matching contracts and receipts, or recent draft tax returns and trial balances) to calibrate field extraction, GL mapping rules, and tolerance thresholds in an isolated test ledger before production rollout.

Book a Tax & Finance AI Demo Tested on Real Historical Records

Start with a single pilot across three-way PO matching, Golden Tax pre-filing risk scans, multi-bank reconciliation, or schema-locked SQL ChatBI. Our architects and FDEs validate accuracy on anonymized records within 2–4 weeks.