flowchart TD
subgraph BALANCE[Balance not zero scenario]
BAL_1[Apply rounding rule & tolerance check]
BAL_2[Search for missing offset postings]
BAL_3[Compute suggested adjustment amount]
BAL_DEC{Within tolerance?}
BAL_AUTO[Auto apply adjustment & prepare posting]
BAL_ASK[Ask human to approve adjustment]
BAL_ESC[Escalate to Finance if rejected]
end
BAL_1 --> BAL_2 --> BAL_3 --> BAL_DEC
BAL_DEC -- yes --> BAL_AUTO
BAL_DEC -- no --> BAL_ASK --> BAL_ESC
flowchart TD
subgraph BANK[Bank account mismatch scenario]
BK_1[Validate invoice bank vs vendor master]
BK_2[Normalize account format & recheck]
BK_MATCH{Do accounts match?}
BK_AUTO_MATCH[Auto match & proceed posting]
BK_CHANGELOG[Check vendor change log]
BK_AUTH_CHECK{Is vendor change authorized?}
BK_VMD_UPDATE[Create vendor master update request]
BK_ASK_HUMAN[Ask human to confirm update]
BK_ESCALATE_VENDOR[Escalate to vendor confirmation]
end
BK_1 --> BK_2 --> BK_MATCH
BK_MATCH -- yes --> BK_AUTO_MATCH
BK_MATCH -- no --> BK_CHANGELOG --> BK_AUTH_CHECK
BK_AUTH_CHECK -- authorized --> BK_VMD_UPDATE
BK_AUTH_CHECK -- not authorized --> BK_ASK_HUMAN
BK_ASK_HUMAN --> BK_ESCALATE_VENDOR
flowchart TD
subgraph VAT[VAT code or rate error scenario]
VAT_1[Validate invoice VAT code vs cockpit mapping]
VAT_2[Check historical mappings & similar invoices]
VAT_SUGGEST{Is mapping unambiguous?}
VAT_AUTO[Auto correct VAT code & prepare posting]
VAT_ASK_TAX[Ask tax expert to review]
VAT_TAX_APPROVE[Tax expert approves correction]
VAT_ESCALATE[Escalate to tax team if clarification needed]
end
VAT_1 --> VAT_2 --> VAT_SUGGEST
VAT_SUGGEST -- yes --> VAT_AUTO
VAT_SUGGEST -- no --> VAT_ASK_TAX --> VAT_TAX_APPROVE
VAT_TAX_APPROVE --> VAT_AUTO
VAT_ASK_TAX --> VAT_ESCALATE
flowchart TD
subgraph OTHER[Other or missing data scenarios]
OTH_1[Detect missing or corrupt fields]
OTH_2[Try enrich data from other systems]
OTH_3{Is data complete now?}
OTH_ASK[Ask human to provide missing data]
OTH_ESC[Create follow up ticket & hold exception]
end
OTH_1 --> OTH_2 --> OTH_3
OTH_3 -- yes --> OTH_ESC
OTH_3 -- no --> OTH_ASK --> OTH_ESC
flowchart TD
subgraph HUMAN[Human]
H_REVIEW[Review AI questions & suggestions]
H_DECIDE[Approve / Modify / Escalate]
H_CONTACT[Contact vendor or other party if needed]
end
subgraph SYS[SAP & Systems]
S_POST[Execute posting/correction in SAP]
S_AUDIT[Write audit trail & attach reasoning]
S_TASK[Open workflow task/ticket for escalation]
S_KPI[Update KPI dashboard]
S_LEARN[Store case for retraining]
end
H_REVIEW --> H_DECIDE
H_DECIDE --> S_POST
H_CONTACT --> S_TASK
S_POST --> S_AUDIT --> S_LEARN --> S_KPI
S_TASK --> S_AUDIT