Find early-payment discounts (Skonto) that expire in the next days, and which payment run still catches them
check_discount_windowAICTIONBOT™ Skonto-Radar by KULIC Advisory. Takes an open-items list (invoices with discount terms) and optional clarification cases from other checks, and returns which discounts expire within the window, which are blocked by a payment hold or an open clarification, which are already lost, and the last payment run that still catches each one. Deterministic, no AI, nothing stored. Findings are written in German. Keys may be given in German (beleg, lieferant, bestellung, rechnungsdatum, eingang, betrag, skonto_pct, skonto_tage, netto_tage, skonto_bis, faellig, sperre) or English (document, supplier, order, invoice_date, received, amount, discount_percent, discount_days, net_days, discount_until, due, blocked).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"open_items": "<open_items>"
},
"name": "check_discount_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | Reference date, YYYY-MM-DD. Default today. | |
| language | No | ||
| open_items | Yes | Open invoices. Each item: document, supplier, order, invoice_date (YYYY-MM-DD or DD.MM.YYYY), received, amount (negative for credit notes), discount_percent, discount_days, net_days, discount_until, due, blocked (yes/no). | |
| window_days | No | Days ahead that count as 'expiring soon'. Default 10. | |
| clarifications | No | Optional open clarification cases from other checks: document, order, reason (grund), with (bei), result (ergebnis). | |
| payment_run_weekdays | No | Weekdays of the payment runs, 1 = Monday. Default [2, 5] (Tuesday, Friday). |