[fiscus-capture] Receipts: the fields every Czech receipt shows, read from an OCR's words; payment.receipt_attached
fiscus_capture::receipt::read takes the OCR's lines (words with boxes and confidence in thousandths) and finds the total, date and time, IČO (check digit), DIČ and the shop's name by their labels, never a shop's layout; unsure words mark their field, the shop is always to check; bounded, control characters dropped, a proptest. The phone's post takes a receipt (source receipt, ico, dic). The ledger gains payment.receipt_attached (the payment keeps its merchant and key), known_shop and receipt_match (exactly one candidate or none). docs/07_receipts.md; fixtures/receipts/ waits for redacted samples. v0.9.0.
This commit is contained in:
@@ -34,6 +34,7 @@ recorded in `state.rejected` and changes nothing else. Corrections are new event
|
||||
| `payment.categorised` | an explicit category for one payment |
|
||||
| `payment.assigned` | puts a payment into a budget |
|
||||
| `payment.trial_marked` | "this is a trial", with its end date |
|
||||
| `payment.receipt_attached` | a receipt for the payment: the shop's name, its IČO and DIČ (docs/07_receipts.md); the payment keeps its merchant |
|
||||
| `budget.created` / `budget.limit_set` | a monthly budget and its limit |
|
||||
| `rule.created` | "always <merchant> → <category>" |
|
||||
| `subscription.decided` | keep or cancel, for a merchant, at the amount seen when deciding |
|
||||
|
||||
Reference in New Issue
Block a user