{"id":"pro-fin-ap-payment-run-cash-cap","audience":"finance","category":"planning","technique":"constraints","title":"Choose this week's vendor payments under a cash cap","free":false,"task":"You run accounts payable, and the controller set a $50,000 cap for this week's payment run. You want exactly 5 numbered lines: 4 invoices to pay in priority order, then a total line showing the sum, under 70 words, plain text. Rank by the controller's rules, use the corrected invoice amount, and don't pay the invoice that's on hold. Write a prompt that gets you exactly that.","materialLabel":"Open invoices and the controller's rules (attached to your prompt automatically)","material":"AP payment run - week of Nov 17 - cash cap $50,000\n\nController's priority rules:\n1. Invoices with a late fee if paid after this week\n2. Invoices with an early-payment discount expiring this week\n3. Everything else by oldest due date\nNever pay an invoice on hold.\n\nOpen invoices:\n- Ridgeline Packaging - $14,200 - due Nov 20 - 1.5% late fee after Nov 20\n- Copperleaf Foods - $9,800 - due Dec 5 - 2% discount if paid by Nov 21\n- Summit Freight - $18,500 - due Nov 18 - late fee after Nov 18\n- Bayview Office Supply - $2,300 - due Nov 30\n- Northgate Electric - $11,000 - due Nov 25 - ON HOLD (disputed charge)\n- Kestrel IT Services - $6,400 - due Nov 24\n\nEmail from Ridgeline (Nov 14): \"Correction: invoice should be $12,700, not $14,200. We double-billed one pallet. Revised invoice attached.\"\n\nNote: quarterly tax payment is separate, not part of this run.","rules":[{"type":"numberedItems","count":5},{"type":"maxWords","max":70},{"type":"plainText"}],"mistakes":[{"title":"Not giving the rules","why":"The AI pays the biggest or oldest invoices first.","fix":"Add: \"Rank by the controller's rules: late fee, then discount, then oldest due.\"","checks":["r0"]},{"title":"Missing the correction","why":"The original $14,200 is in the list.","fix":"Add: \"Use Ridgeline's corrected $12,700.\"","checks":["r1"]},{"title":"Paying the held invoice","why":"The AI sees Northgate due soon and includes it.","fix":"Add: \"Never pay an invoice on hold.\"","checks":["r2"]},{"title":"Letting the AI pick the layout","why":"The AI builds a table with notes.","fix":"Be exact: \"Exactly 5 numbered lines: 4 invoices, then the total with its math. Plain text.\"","checks":["numberedItems","plainText"]},{"title":"Trusting the AI to count words","why":"AI is bad at counting. Ask for \"under 70 words\" and it often lands well over.","fix":"Cap each part instead: \"each line under 9 words.\"","checks":["maxWords"]}],"promptHints":[{"label":"Says how many lines","patterns":["\\b(5|five)\\b"]},{"label":"Uses the rules","patterns":["rules","late fee","discount","priority"]},{"label":"Uses the correction","patterns":["correct","12,?700","revised"]},{"label":"Skips the hold","patterns":["hold","disput","northgate"]},{"label":"Shows the total","patterns":["total","sum","add up","50,?000"]}],"hint":"Payment runs follow rules and a cap. Give the AI the rules, the correction, and ask for a total with its math.","rubricLabels":["The four invoices are, in order: Summit Freight and Ridgeline Packaging (late fees, either order), Copperleaf Foods (discount), Kestrel IT Services (oldest remaining due date)","Ridgeline uses the corrected $12,700, and the total line shows $18,500 + $12,700 + $9,800 + $6,400 = $47,400, at or under the $50,000 cap","Northgate Electric (on hold) and the tax payment are left out, and there is no intro or commentary"]}