{ "format_version": 1, "tables": [], "id": "money_owed", "name": "Owed", "plural": "Owed", "picture": null, "builtin": false, "visibility": "owner", "engine": null, "columns": [ { "key": "description", "name": "What", "type": "text", "readonly": false }, { "key": "occurred_on", "name": "Date", "type": "date", "readonly": false }, { "key": "account_id", "name": "Account", "type": "link", "link_to": "money_account", "readonly": false }, { "key": "amount_minor", "name": "Amount", "type": "amount", "readonly": false, "currency": "currency" }, { "key": "amount_known", "name": "Amount known", "type": "bool", "readonly": false }, { "key": "direction", "type": "choice", "choices": [ "in", "out" ], "readonly": false, "labels": { "out": "Owed to me", "in": "I owe" } }, { "key": "currency", "type": "text", "readonly": false }, { "key": "status", "type": "choice", "choices": [ "actual", "expected" ], "readonly": false }, { "key": "certainty", "type": "choice", "choices": [ "fixed", "expected", "estimate" ], "readonly": false }, { "key": "for_period", "name": "For month", "type": "text", "readonly": false }, { "key": "between_us", "name": "Between us", "type": "bool", "readonly": false }, { "key": "moves_money", "name": "Moves money", "type": "bool", "readonly": false }, { "key": "tag", "type": "text", "readonly": false }, { "key": "counterparty_person_id", "name": "Person", "type": "link", "link_to": "person", "readonly": false }, { "key": "due_date", "name": "Due", "type": "date", "readonly": false }, { "key": "owed_signed", "name": "Signed", "type": "amount", "currency": "currency", "computed": { "formula": { "op": "signed", "of": [ "amount_minor" ], "flip_when": { "column": "direction", "values": [ "in" ] } } } }, { "key": "balance_after", "name": "Balance after", "type": "amount", "currency": "currency", "computed": { "running": { "column": "owed_signed", "partition": [ "counterparty_person_id" ], "opening": 0, "order": "occurred_on" } } } ], "title": "description", "date": "occurred_on", "project": null, "order": null, "slip": { "title": "description", "subtitle": "tag", "trailing": "occurred_on", "photo": null, "toggle": null, "figure": "balance_after" }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "description", "occurred_on", "account_id" ], "figure": "balance_after" } ], "record_route": "/money/transactions/[id]", "sort": { "column": "occurred_on", "descending": true }, "group": { "column": "counterparty_person_id", "summary": [ { "op": "sum", "column": "owed_signed", "label": "between you" } ] }, "search": [ "description", "tag" ], "delete": false, "source": { "table": "transaction", "where": { "counterparty_person_id": { "present": true }, "status": "actual" } }, "instructions": "The money rows between you and another person, by person: what each owes, or is owed." }