askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
asset_tax_entries.json · 1.8 KB · 22 lines
| 1 | { |
| 2 | "name": "asset_tax_entries", |
| 3 | "title": "Asset Tax Entries", |
| 4 | "version": 1, |
| 5 | "description": "Tax depreciation for one asset and one tax year, typed in from the accountant's figures, for an asset whose tax_method is operator_entered. These are never booked: the books carry book depreciation, and the tax return carries what the accountant computed (MACRS, Section 179, bonus depreciation -- none of which this system computes). Kept here so the tax column of the schedule says where each number came from. Not tax advice.", |
| 6 | "fields": [ |
| 7 | {"name": "id"}, |
| 8 | {"name": "asset_id", "type": "relation", "required": true, "label": "Asset", |
| 9 | "relation": {"collection": "fixed_assets", "display_field": "name", "requires": "update"}}, |
| 10 | {"name": "tax_year", "type": "integer", "required": true, "label": "Tax Year", "validation": {"min": 1900, "max": 2200}}, |
| 11 | {"name": "amount_cents", "type": "integer", "required": true, "label": "Tax Depreciation (cents)", "validation": {"min": 0}}, |
| 12 | {"name": "basis_note", "type": "text", "required": true, "label": "Where It Came From", "validation": {"min_length": 3, "max_length": 300}, |
| 13 | "help": "e.g. 'MACRS 5-year, half-year convention, per the accountant's letter of 2027-02-10'."}, |
| 14 | {"name": "owner_id", "type": "text", "label": "Owner"}, |
| 15 | {"name": "entity_id", "type": "text", "label": "Entity", |
| 16 | "relation": {"collection": "entities", "display_field": "name", "requires": "update"}}, |
| 17 | {"name": "created_at", "type": "datetime", "label": "Created", "read_only": true} |
| 18 | ], |
| 19 | "unique": [{"fields": ["asset_id", "tax_year"], "message": "This asset already has a tax figure for that year. Edit that row."}], |
| 20 | "forms": {"default": {"fields": ["asset_id", "tax_year", "amount_cents", "basis_note"]}}, |
| 21 | "views": {"list_mode": "table", "list_fields": ["asset_id", "tax_year", "amount_cents", "basis_note"]} |
| 22 | } |