{"skills":[{"name":"Reconcile a supplier statement","description":"Trace a closing balance difference to the opening balance, missing documents and mismatched line amounts.","content":"# Reconcile a supplier statement\n\nTrace a closing balance difference to the opening balance, missing documents and mismatched line amounts.\n\n## When to use this skill\n\n- A supplier statement shows a different balance from the purchase ledger.\n- A supplier is chasing invoices you have no record of, or you are missing a credit note.\n- Month-end or year-end checks need the main supplier balances agreed.\n\n## When not to use it\n\n- Allocating one payment to invoices. Use the remittance allocation skill.\n- Searching the whole payables ledger for duplicate bills. Use the duplicate invoice skill.\n- Negotiating a disputed price or quantity. The method identifies the difference; the commercial outcome is between you and the supplier.\n\n## What you need\n\n- Supplier statement and purchase ledger for one account through the same date\n- Agreed reference aliases and a convention for credit signs\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What date is the statement to, and can you export the ledger to exactly the same date?\n- Do both documents show opening balances, or only closing totals?\n- Are there agreed mappings between the supplier's references and yours?\n- Were any payments sent close to the statement date, and when did they leave your bank?\n\n## Method\n\n1. Select one supplier, one currency and one cut-off date. Normalise signs so invoices increase the amount owed and credits and payments reduce it. Use gross amounts including VAT on both sides, because that is what is owed.\n2. Compare the opening balances separately. An opening difference is an unresolved item from an earlier period; trace it to the previous reconciliation rather than absorbing it.\n3. Match references using only exact IDs or agreed aliases. A shared amount or a similar-looking number is not enough. Keep any ambiguous pair for review.\n4. For each matched reference, subtract the ledger amount from the statement amount. Enter statement-only items at their signed statement amount and ledger-only items at the negative of their signed ledger amount.\n5. Classify each difference as timing (a payment the supplier has not yet received, an invoice or credit note not yet received or posted), error (transposition, wrong supplier account, discount or VAT mistake) or dispute (price or quantity).\n6. Prove the bridge: the opening difference plus all line differences equals the closing difference. A payment recorded only after the cut-off stays outside the period. With closing balances only, show a closing bridge and label the unexplained residual.\n7. Ask the supplier for copies of missing invoices and credit notes. Do not post an invoice from the statement alone without the invoice and evidence of delivery.\n\n## Checks before you deliver\n\n- No change in the net balance can hide a missing invoice and a missing credit.\n- Leading zeroes and supplier prefixes can distinguish different invoices. Preserve the source references unless there is an agreed map.\n- When only certified closing balances and named exceptions are available, show a closing bridge and label any unexplained residual. Do not manufacture matching opening balances or imply that the unseen movements were checked.\n- Posting a statement-only invoice before the original arrives can create a duplicate when the invoice is later entered.\n- Comparing net ledger amounts with a gross statement creates a false difference the size of the VAT.\n\n## How to present the result\n\nLead with both closing balances, the difference and whether it is fully explained. Then give a bridge table: the opening difference, then each item with reference, statement amount, ledger amount, difference and category. Label any unexplained residual. Finish with the request to the supplier for missing documents and the postings to make once the evidence arrives.\n\n## Worked example\n\n**Request:** Explain our October supplier balance difference.\n\n**Supplied material:**\n\n```text\nGBP. Positive = invoice, negative = credit\/payment. Agreed alias S-010 to 010.\nStatement opening 100; S-010 250; CN1 -50; PAY1 -80.\nLedger opening 100; 010 240; PAY1 -80.\n```\n\n**Answer:** The supplier closes at \u00a3220 and the ledger at \u00a3260. The supplier\u2019s S-010 is \u00a310 above ledger invoice 010 and its \u00a350 credit CN1 is absent from the ledger. Those two differences explain the \u00a340 lower supplier balance. Check the price and obtain the credit note before posting.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn opening_difference, statement_close, ledger_close and closing_difference as signed currency numbers. Return differences as an object keyed by unmatched or differing reference; use the statement reference for an agreed alias. For closing-balance-only evidence, set opening_difference to null and include unexplained as closing_difference minus the signed named differences.\n\n## Sources\n\n- [ACCA \u00b7 Supplier statement reconciliations](https:\/\/www.accaglobal.com\/gb\/en\/student\/exam-support-resources\/foundation-level-study-resources\/fa1\/technical-articles\/supplier-statement-reconciliations.html): ACCA's article lists the usual causes of a difference: payments not yet received by the supplier, credit or debit notes not processed, invoices posted to the wrong supplier, discount mistakes and transposition errors. Its worked example uses gross amounts including sales tax. The skill classifies differences the same way.\n- [Microsoft \u00b7 Reconcile vendor payments in Business Central](https:\/\/learn.microsoft.com\/en-us\/dynamics365\/business-central\/payables-how-apply-purchase-transactions-manually): Business Central applies payments and credit memos to individual vendor entries, including partial amounts, so a document can stay partly open. The skill compares open items document by document for that reason.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/reconcile-supplier-statement\n","scope":"contextual","trigger_keywords":["Reconcile a supplier statement","reconcile-supplier-statement","reconcile supplier statement","Why is this supplier\u2019s statement balance different from ours?","Why is this supplier\u2019s statement balance different from ours","reconcile this supplier statement","reconcile our supplier statement","supplier statement reconciliation"],"is_private":true,"is_active":true,"scripts":[{"name":"reconcile-supplier-statement-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"reconcile-supplier-statement-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: reconcile-supplier-statement\ndescription: \"Reconcile a supplier's statement with your purchase ledger at the same date and trace the difference to opening balances, missing invoices or credit notes and mismatched amounts, labelling anything unexplained. Use when a supplier statement balance disagrees with your records.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/reconcile-supplier-statement\n---\n\n# Reconcile a supplier statement\n\nTrace a closing balance difference to the opening balance, missing documents and mismatched line amounts.\n\n## When to use this skill\n\n- A supplier statement shows a different balance from the purchase ledger.\n- A supplier is chasing invoices you have no record of, or you are missing a credit note.\n- Month-end or year-end checks need the main supplier balances agreed.\n\n## When not to use it\n\n- Allocating one payment to invoices. Use the remittance allocation skill.\n- Searching the whole payables ledger for duplicate bills. Use the duplicate invoice skill.\n- Negotiating a disputed price or quantity. The method identifies the difference; the commercial outcome is between you and the supplier.\n\n## What you need\n\n- Supplier statement and purchase ledger for one account through the same date\n- Agreed reference aliases and a convention for credit signs\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What date is the statement to, and can you export the ledger to exactly the same date?\n- Do both documents show opening balances, or only closing totals?\n- Are there agreed mappings between the supplier's references and yours?\n- Were any payments sent close to the statement date, and when did they leave your bank?\n\n## Method\n\n1. Select one supplier, one currency and one cut-off date. Normalise signs so invoices increase the amount owed and credits and payments reduce it. Use gross amounts including VAT on both sides, because that is what is owed.\n2. Compare the opening balances separately. An opening difference is an unresolved item from an earlier period; trace it to the previous reconciliation rather than absorbing it.\n3. Match references using only exact IDs or agreed aliases. A shared amount or a similar-looking number is not enough. Keep any ambiguous pair for review.\n4. For each matched reference, subtract the ledger amount from the statement amount. Enter statement-only items at their signed statement amount and ledger-only items at the negative of their signed ledger amount.\n5. Classify each difference as timing (a payment the supplier has not yet received, an invoice or credit note not yet received or posted), error (transposition, wrong supplier account, discount or VAT mistake) or dispute (price or quantity).\n6. Prove the bridge: the opening difference plus all line differences equals the closing difference. A payment recorded only after the cut-off stays outside the period. With closing balances only, show a closing bridge and label the unexplained residual.\n7. Ask the supplier for copies of missing invoices and credit notes. Do not post an invoice from the statement alone without the invoice and evidence of delivery.\n\n## Checks before you deliver\n\n- No change in the net balance can hide a missing invoice and a missing credit.\n- Leading zeroes and supplier prefixes can distinguish different invoices. Preserve the source references unless there is an agreed map.\n- When only certified closing balances and named exceptions are available, show a closing bridge and label any unexplained residual. Do not manufacture matching opening balances or imply that the unseen movements were checked.\n- Posting a statement-only invoice before the original arrives can create a duplicate when the invoice is later entered.\n- Comparing net ledger amounts with a gross statement creates a false difference the size of the VAT.\n\n## How to present the result\n\nLead with both closing balances, the difference and whether it is fully explained. Then give a bridge table: the opening difference, then each item with reference, statement amount, ledger amount, difference and category. Label any unexplained residual. Finish with the request to the supplier for missing documents and the postings to make once the evidence arrives.\n\n## Worked example\n\n**Request:** Explain our October supplier balance difference.\n\n**Supplied material:**\n\n```text\nGBP. Positive = invoice, negative = credit\/payment. Agreed alias S-010 to 010.\nStatement opening 100; S-010 250; CN1 -50; PAY1 -80.\nLedger opening 100; 010 240; PAY1 -80.\n```\n\n**Answer:** The supplier closes at \u00a3220 and the ledger at \u00a3260. The supplier\u2019s S-010 is \u00a310 above ledger invoice 010 and its \u00a350 credit CN1 is absent from the ledger. Those two differences explain the \u00a340 lower supplier balance. Check the price and obtain the credit note before posting.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn opening_difference, statement_close, ledger_close and closing_difference as signed currency numbers. Return differences as an object keyed by unmatched or differing reference; use the statement reference for an agreed alias. For closing-balance-only evidence, set opening_difference to null and include unexplained as closing_difference minus the signed named differences.\n\n## Sources\n\n- [ACCA \u00b7 Supplier statement reconciliations](https:\/\/www.accaglobal.com\/gb\/en\/student\/exam-support-resources\/foundation-level-study-resources\/fa1\/technical-articles\/supplier-statement-reconciliations.html): ACCA's article lists the usual causes of a difference: payments not yet received by the supplier, credit or debit notes not processed, invoices posted to the wrong supplier, discount mistakes and transposition errors. Its worked example uses gross amounts including sales tax. The skill classifies differences the same way.\n- [Microsoft \u00b7 Reconcile vendor payments in Business Central](https:\/\/learn.microsoft.com\/en-us\/dynamics365\/business-central\/payables-how-apply-purchase-transactions-manually): Business Central applies payments and credit memos to individual vendor entries, including partial amounts, so a document can stay partly open. The skill compares open items document by document for that reason.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/reconcile-supplier-statement\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/reconcile-supplier-statement\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Missing credit and disputed price\n\nExplain our October supplier balance difference.\n\n## Supplied material\n\nGBP. Positive = invoice, negative = credit\/payment. Agreed alias S-010 to 010.\nStatement opening 100; S-010 250; CN1 -50; PAY1 -80.\nLedger opening 100; 010 240; PAY1 -80.\n\n## Worked answer\n\nThe supplier closes at \u00a3220 and the ledger at \u00a3260. The supplier\u2019s S-010 is \u00a310 above ledger invoice 010 and its \u00a350 credit CN1 is absent from the ledger. Those two differences explain the \u00a340 lower supplier balance. Check the price and obtain the credit note before posting.\n\n## Reasoning\n\nA \u00a310 invoice difference and a \u00a350 credit explain the \u00a340 net difference.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Explain our October supplier balance difference.\nReturn only the JSON specified in SKILL.md for this test.\n\nGBP. Positive = invoice, negative = credit\/payment. Agreed alias S-010 to 010.\nStatement opening 100; S-010 250; CN1 -50; PAY1 -80.\nLedger opening 100; 010 240; PAY1 -80.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"opening_difference\": 0,\n    \"statement_close\": 220,\n    \"ledger_close\": 260,\n    \"closing_difference\": -40,\n    \"differences\": {\n        \"S-010\": 10,\n        \"CN1\": -50\n    }\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"A \u00a310 invoice difference and a \u00a350 credit explain the \u00a340 net difference.\n"},{"path":"tests\/case-2\/request.txt","content":"Is the matching closing total enough to sign off?\nReturn only the JSON specified in SKILL.md for this test.\n\nEUR. Positive = invoice. Statement opening 70; INV7 100. Ledger opening 50; INV7 100; INV8 20.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"opening_difference\": 20,\n    \"statement_close\": 170,\n    \"ledger_close\": 170,\n    \"closing_difference\": 0,\n    \"differences\": {\n        \"INV8\": -20\n    }\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The opening balance difference cancels a ledger-only invoice.\n"},{"path":"tests\/case-3\/request.txt","content":"Explain the reported closing difference before deciding what to investigate.\nReturn only the JSON specified in SKILL.md for this test.\n\nGBP supplier statement close 620 and purchase ledger close 600; no openings or full history supplied. S50 invoice 50 on statement only, L30 invoice 30 on ledger only. Positive values are amounts owed.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"opening_difference\": null,\n    \"statement_close\": 620,\n    \"ledger_close\": 600,\n    \"closing_difference\": 20,\n    \"differences\": {\n        \"S50\": 50,\n        \"L30\": -30\n    },\n    \"unexplained\": 0\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"\u00a350 less \u00a330 explains the \u00a320 difference between reported closings. Gross unmatched documents need checking individually.\n"}],"is_active":true,"is_approved":false}]}]}