507eb62216
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.
26 lines
767 B
Rust
26 lines
767 B
Rust
//! Fiscus Domi's ledger: money in haléře, civil dates, the append-only event log and the state derived from
|
|
//! it, merchant keys and rules, capture ↔ statement matching, splits and QR Platba. Pure: no I/O, no clock, no
|
|
//! randomness.
|
|
|
|
pub mod categories;
|
|
pub mod date;
|
|
pub mod event;
|
|
pub mod goal;
|
|
pub mod import;
|
|
pub mod invoice;
|
|
pub mod matching;
|
|
pub mod merchant;
|
|
pub mod money;
|
|
pub mod pay;
|
|
pub mod project;
|
|
pub mod receipt;
|
|
pub mod share;
|
|
pub mod split;
|
|
pub mod state;
|
|
|
|
pub use date::{Date, Timestamp};
|
|
pub use event::{BudgetId, CaptureKind, Category, Decision, Event, EventBody, EventId, PaymentId, Settlement, SplitId};
|
|
pub use money::Haler;
|
|
pub use receipt::{KnownShop, ReceiptInfo};
|
|
pub use state::{EffectivePayment, Glyph, Origin, ShareView, State};
|