Bps stock at date
bps_stock_at_dateBPS-Bestand zum Stichtag (Tagesende Europe/Berlin) je Artikel mit Bewertung zum Einkaufspreis, z. B. Inventur 31.12.2025 fuer den Jahresabschluss. Liegt ein Snapshot vor: dessen Wert. Sonst Rueckrechnung = Bestand erster Snapshot + Ausgaenge(Stichtag..Snapshot) − Eingaenge(Stichtag..Snapshot). BPS liefert keine Wareneingaenge: ohne Parameter inbound ist das Ergebnis eine OBERGRENZE (kenntlich in ergebnis_art/hinweise). Einkaufspreis: purchase_prices (Parameter) > bps_artikel.ek > lieferant_artikel.ek der Basis-EAN × Packungsgroesse; sonst ek=null, ek_quelle 'kein Einkaufspreis im System', Wert leer. Voraussetzung: bps_sync 'voll' (Auftraege + Bestand). Nur lesend.
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": {
"date": "<date>"
},
"name": "bps_stock_at_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Stichtag YYYY-MM-DD, z. B. 2025-12-31 | |
| limit | No | Zeilen, Vorgabe 2000 (Summe immer ueber alle) | |
| barcode | No | ||
| inbound | No | Wareneingaenge (auch Retouren) zwischen Stichtag und erstem Snapshot, z. B. aus dem BPS-Portal-Export | |
| store_id | No | ||
| nur_mit_bestand | No | Zeilen mit Bestand 0 weglassen | |
| purchase_prices | No | Einkaufspreise netto je Barcode (gehen vor gespeicherte) |