You ask in plain words
With whatever notes or documents you already have.
Which invoices does this supplier payment cover?
Prepare a supplier payment allocation.
Your notes
Payment £250. Open INV4 £180; INV5 £90. Remittance: INV4 £190; INV5 £50. No other instructions.
Your agent answers with a checked method
It runs 5 checks before it replies.
Your agentUsing this skill
Of the £250 payment, apply £180 to close INV4 and £50 to INV5, leaving £40 on INV5. Keep £20 unapplied pending instructions. This includes the £10 advised above the open INV4 balance.
- Applying cash automatically to the oldest invoice can contradict the remittance advice. Business Central's Apply to Oldest method does exactly this when no entry is named.
- A partial payment can legitimately leave a residual balance. An unknown reference does not justify reallocating cash to a different document.
- Applying a credit note that the ledger has already used against an invoice takes it twice and understates what is owed.
- Matching on amount alone can pick the wrong invoice when two open documents have the same value. Match on the document reference.
- Choosing which invoice to short-pay when the advice adds up to more than the cash. Ask which invoice the shortfall belongs to.
Why that’s right. £10 exceeds the first balance and £10 carries no instruction.
Is it the right skill?
What it’s for, and when another skill or a person is the better choice.
Use it when
- A payment to a supplier has gone out with a remittance advice and the purchase ledger needs it applied invoice by invoice.
- The remittance lists invoice amounts, credit notes or deductions that do not add up to the cash that moved.
- A supplier says a payment does not match their invoices and you need to show what it was meant to cover.
Not the right skill when
- Reconciling a whole supplier statement over a period. Use the supplier statement reconciliation skill.
- Deciding whether a deduction, discount or short payment is justified. That depends on the contract and what the supplier agreed; the method only records what the advice says.
- Posting the entries. The method proposes an allocation for someone with ledger authority to review and post.
The method it follows
6 steps, in order, every time.
- Confirm the scope: one supplier account, one payment, one currency. Take the cash amount from the bank record, not from the advice, and the open items from the ledger at the payment date.
- Rebuild the advice line by line: document reference, face amount, each deduction (credit note, discount, retention) and the net cash it assigns. Add up the net cash instructions.
- Check every credit or deduction against the open-item ledger. If the ledger already shows a credit applied, the open balance already reflects it, so allocate only the net cash. An open credit can be applied as instructed. If a credit is unknown, or the intended cash split is unclear, ask before allocating.
- If the instructions need more cash than was paid, hold the whole allocation and ask. The order the invoices are listed in is not authority to choose which one is short-paid.
- Otherwise allocate each instructed amount to the one open document it names, capped at that document's outstanding balance. Keep any excess over a balance, unknown references and cash with no instruction unapplied. Do not apply leftover cash to the oldest invoice by default.
- Prove the result: cash allocated plus cash unapplied equals the payment, no invoice balance falls below zero, and every supplied invoice shows its balance after. Present it as a proposed allocation with a query for each unapplied or short-paid amount.
What to have ready
If something’s missing, your agent asks before it starts.
- Payment amount, currency, date and the remittance advice lines
- Open invoices and credit notes for the same supplier with outstanding amounts, showing credits already applied

Do you have the open-item list for this supplier at the payment date, including credit notes already applied? The advice alone cannot show what is still open.

Does the remittance give an amount for each invoice, or only a total? Without per-line amounts there is no instruction to follow.

Are the credit notes and deductions on the advice agreed, and has the ledger already used any of them against an invoice?

What currency left the bank and what currency are the invoices in? A conversion or bank charge changes the cash to allocate.
Try it on your own AI
A new question with a known answer, so you can check your AI gets it right.
-
Copy the questionCan we allocate this transfer as instructed? Return only JSON following the skill’s test format. Payment €100. Open R41 €70 and R42 €70. Advice: pay R41 €70 and R42 €60.
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
The proposed allocation exceeds the cash received.
{
"status": "clarify",
"allocations": {},
"balances_after": {
"R41": 70,
"R42": 70
},
"unapplied": 100
}
The check runs in your browser. Nothing you paste is sent anywhere.
-
Copy the questionAllocate this transfer from the advice and open-item report. Return only JSON following the skill’s test format. GBP 850 transferred. Advice: invoice A 640 less credit CN4 90, invoice B 300. Open ledger A 550 after CN4, B 300. CN4 fully applied to A.
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
The £90 credit explains the difference between invoice face and cash. Its effect is already in the open balance.
{
"status": "proposed",
"allocations": {
"A": 550,
"B": 300
},
"balances_after": {
"A": 0,
"B": 0
},
"unapplied": 0
}
The check runs in your browser. Nothing you paste is sent anywhere.
Where the method comes from
Free to use and adapt with credit (CC BY 4.0).
Use this skill in Raq.com
Add it to your Skill Library and your agent applies it whenever a request matches. Edit it for your own business and keep every version.