ERP: Record a shop's day report from a photo
erp_day_reportA PHOTO of a shop's handwritten DAILY SALES REPORT («Щоденний звіт продажів»: date, department, seller, a table of rows — scent code, ml, bottle, colour, sum in [brackets] = card / without = cash, note UDS / −15 %; Каса, Безготівка, Залишок, testers) → the day's sales in the ERP in ONE card. Use it whenever the person sends or mentions such a photo and asks to read / check / record it («запиши звіт», «розбери звіт», «глянь звіт продажів», «запиши продажі з фото»). The server reads the photo itself, cell by cell (never say a handwriting is unreadable; never retype the rows yourself), checks the money, finds the department, the seller and every item in the cabinet, and the card asks what is open with buttons. Call with NO arguments for the latest photo; 'capture_id' for another. The person's corrections («рядок 4 — 606а», «9 і 10 разом», «відділ Сріблястий», «тестери по 5 мл») → call again with 'rows' / 'department' / 'seller' / 'tester_quantity' (the new card replaces the old one). 'read_again': true only when the person says the reading is wrong all over. A day already recorded for that department is refused — tell the person, never record it twice. Proposed write — «Записати» writes the card sales (paid by card) and the cash sales as two ERP sales from the department's warehouse and writes the testers off. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "erp_day_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD only to correct the sheet's date. | |
| rows | No | ||
| again | No | Only when the person confirms a SECOND report of the same department and day is not a duplicate. | |
| seller | No | ||
| capture_id | No | The photo (intake capture id); default the latest own photo. | |
| card_total | No | Correct «Безготівка» if misread. | |
| department | No | The department / shop as the person names it, or a warehouse id. | |
| read_again | No | ||
| cash_register | No | Correct «Каса» if misread. | |
| accept_mismatch | No | The person said to record it although the money does not add up. | |
| tester_quantity | No | How much to write off per tester, in the scent's unit (ml); 0 = none. |