Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 signup: the person chooses the password and name on the confirm page 83c7aa6 2 weeks, 5 days ago History
fin_accounts.json · 3.3 KB · 118 lines
1{
2 "name": "fin_accounts",
3 "title": "Chart of Accounts",
4 "version": 3,
5 "description": "Double-entry chart of accounts: the 5 real account types (asset/liability/equity/income/expense), optionally arranged into a parent/child hierarchy via parent_id. Reconciled against a private predecessor-system audit, not part of this repo (its Account model: 'COA hierarchy, 5 types'). No account seeding/entity-mode behavior is built here (the source's Entity model seeds a starter chart of accounts per books-mode; this package carries plain accounts only -- see dbbasic-package.json's Deferred list).",
6 "fields": [
7 {
8 "name": "id"
9 },
10 {
11 "name": "name",
12 "type": "text",
13 "required": true,
14 "label": "Name",
15 "validation": {
16 "min_length": 1,
17 "max_length": 200
18 }
19 },
20 {
21 "name": "code",
22 "type": "text",
23 "label": "Code",
24 "validation": {
25 "max_length": 32
26 },
27 "help": "Optional account code/number, e.g. \"1000\". Not auto-assigned or required -- an owner may leave it blank."
28 },
29 {
30 "name": "account_type",
31 "type": "enum",
32 "required": true,
33 "label": "Type",
34 "enum": [
35 "asset",
36 "liability",
37 "equity",
38 "income",
39 "expense"
40 ],
41 "help": "The 5 real double-entry account types, matching the predecessor system's Account model exactly (reconciled against a private source audit, not part of this repo)."
42 },
43 {
44 "name": "parent_id",
45 "type": "relation",
46 "label": "Parent Account",
47 "relation": {
48 "collection": "fin_accounts",
49 "display_field": "name"
50 },
51 "help": "Optional self-relation for a parent/child chart-of-accounts hierarchy (e.g. \"Bank Accounts\" under \"Assets\"). Nothing in this package enforces a parent's account_type matches its children's, or guards against a cycle -- the source's own Account model did not enforce either (reconciled against a private predecessor-system audit, not part of this repo), so neither is added here."
52 },
53 {
54 "name": "currency",
55 "type": "text",
56 "default": "USD",
57 "label": "Currency (ISO 4217)",
58 "validation": {
59 "pattern": "^[A-Z]{3}$"
60 }
61 },
62 {
63 "name": "is_active",
64 "type": "boolean",
65 "default": "true",
66 "label": "Active"
67 },
68 {
69 "name": "owner_id",
70 "type": "text",
71 "label": "Owner"
72 },
73 {
74 "name": "entity_id",
75 "type": "text",
76 "label": "Entity",
77 "relation": {
78 "collection": "entities",
79 "display_field": "name"
80 },
81 "help": "The set of books this belongs to (65 multi-entity). Optional during rollout; backfilled to the owner's default entity, set by the entity switcher on new writes."
82 },
83 {
84 "name": "created_at",
85 "type": "datetime",
86 "label": "Created",
87 "read_only": true
88 }
89 ],
90 "forms": {
91 "default": {
92 "fields": [
93 "name",
94 "code",
95 "account_type",
96 "parent_id",
97 "currency",
98 "is_active"
99 ]
100 }
101 },
102 "views": {
103 "list_mode": "tree",
104 "list_fields": [
105 "name",
106 "code",
107 "account_type",
108 "currency",
109 "is_active"
110 ]
111 },
112 "search": {
113 "fields": [
114 "name",
115 "code"
116 ]
117 }
118}