# roborto accounting Local, single-user double-entry accounting for the roborto sole-trader software business. SQLite is authoritative; CSV, ODS and PDF files are outputs. The business has not started trading. Set the official commencement date only when known. Existing ODS files are reference/archive material and are not imported. ## Install and initialize Python 3.11 or newer is required. ```bash python3 -m venv .venv .venv/bin/pip install -e . .venv/bin/accounts init ``` The command can then be run from any working directory. By default it uses: - configuration: `~/.config/roborto-accounting/` - optional env file location: `~/.config/roborto-accounting/env` - database: `~/.local/share/roborto-accounting/accounts.sqlite` - documents: `~/.local/share/roborto-accounting/documents/` - backups: `~/.local/share/roborto-accounting/backups/` `XDG_CONFIG_HOME`, `XDG_DATA_HOME`, and `XDG_STATE_HOME` override their respective base directories. Operational `.env` files and secrets do not belong in this repository. The application currently needs no secret environment variables. Use `--database PATH` before the command name to operate on a different database: ```bash accounts --database /path/to/test.sqlite init ``` Never point tests or experiments at the real accounting database. ## Initial configuration ```bash accounts settings-set trading_name roborto accounts settings-set business_descriptor "Software Development" accounts settings-set general_email hello@roborto.net accounts settings-set accounts_email accounts@roborto.net accounts settings-set default_payment_terms_days 14 accounts settings-set default_hourly_rate 85.00 accounts settings-set default_income_account 4000 accounts settings-set commencement_date unset accounts settings-show accounts chart-list ``` Set `commencement_date` to `YYYY-MM-DD` when it becomes official. `vat_enabled` accepts `true` or `false`. The v1 base currency remains EUR. ## Core records and bookkeeping Commands accept ISO dates and exact decimal amounts. ```bash accounts client-add --name "Example Client" --email client@example.com --non-interactive accounts supplier-add --name "Example Supplier" --non-interactive accounts expense-add \ --date 2026-09-15 \ --description "Monthly hosting" \ --amount 25.00 \ --expense-account 5000 \ --payment-account 1000 \ --non-interactive accounts transfer \ --date 2026-09-15 --description "Cash float" --amount 50.00 \ --from-account 1000 --to-account 1010 --non-interactive ``` Owner movements use `capital-add` and `drawings-add`. Advanced corrections use the explicit `journal-manual` command and require a reason. Manual journal lines use: ```text ACCOUNT_CODE|DEBIT|CREDIT ``` Example: ```bash accounts journal-manual --date 2026-09-30 \ --description "Reclassify cost" --reason "Correct category" \ --line '5090|10.00|' --line '5020||10.00' ``` ## Quotations, invoices and payments Quotation and invoice line arguments use: ```text DESCRIPTION|QUANTITY|UNIT|UNIT_PRICE|VAT_AMOUNT|VAT_TREATMENT|INCOME_ACCOUNT ``` ```bash accounts quotation-create --client-id 1 --date 2026-09-01 \ --line 'Development|10|hours|85.00|0|NONE|4000' accounts quotation-issue 1 accounts quotation-accept 1 accounts invoice-from-quotation 1 --date 2026-09-02 accounts invoice-issue 1 accounts invoice-payment 1 --date 2026-09-16 --amount 850.00 \ --financial-account 1000 accounts invoice-list ``` Use `credit-note`, `bad-debt`, and `invoice-void` for explicit non-destructive adjustments. Do not rewrite or delete issued history. Generate an issued sales PDF: ```bash accounts sales-document-generate invoice 1 \ --archive ~/.local/share/roborto-accounting/documents ``` Supplier purchasing commands include `supplier-bill-add`, `supplier-bill-pay`, `supplier-refund`, and `supplier-bill-list`. Time/recharge and recurring-definition commands are visible in `accounts --help`. Recurring definitions never issue invoices or create accounting transactions automatically. ## Bank controls, periods and reports Bank imports require an explicit CSV column mapping. Imported rows remain pending until a match is explicitly approved or manually reconciled. ```bash accounts bank-import statement.csv --financial-account 1000 \ --date-column Date --description-column Description --amount-column Amount accounts bank-list accounts period-close 2026-09 \ --backups ~/.local/share/roborto-accounting/backups accounts period-reopen 2026-09 --reason "Approved correction" ``` Representative reports and exports: ```bash accounts report trial-balance --start 2026-01-01 --end 2026-12-31 accounts report profit-loss --start 2026-01-01 --end 2026-12-31 \ --format ods --output profit-loss.ods accounts report cash-flow --start 2026-01-01 --end 2026-12-31 \ --format pdf --output cash-flow.pdf accounts report tax-review ``` Run a safe backup and read-only integrity check regularly: ```bash accounts backup accounts check ``` Integrity checks report problems; they never silently repair accounting history. ## Business letters and document samples ```bash accounts letter-create --date 2026-09-01 --recipient "Example Client" \ --address '1 Example Street\nDublin' --subject "Project follow-up" \ --body-file letter.txt accounts letter-finalize 1 accounts document-samples --output /tmp/roborto-document-samples ``` Letter finalization is explicit and one-way. The application records and archives the PDF but does not send email. The sample command generates deterministic invoice, quotation, Cash Flow, P&L and letter PDFs for visual review. ## Development validation ```bash .venv/bin/pytest -q .venv/bin/alembic upgrade head git diff --check ``` Tests use isolated temporary databases and files. Read `AGENTS.md` and the maintained documents in `docs/` before significant development work.