@lotics/cli 0.318.25 → 0.318.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli.js +179 -165
- package/dist/src/client.js +1 -1
- package/docs/agent_surface.md +19 -20
- package/docs/app_architecture.md +5 -5
- package/docs/building_an_app.md +1 -1
- package/docs/cli_reference.md +5 -5
- package/docs/design.md +27 -47
- package/docs/examples.md +180 -212
- package/docs/first_build.md +46 -45
- package/docs/workflows.md +8 -3
- package/docs/working_in_a_workspace.md +2 -2
- package/package.json +1 -1
package/docs/examples.md
CHANGED
|
@@ -4,7 +4,7 @@ Each section is one treatment, cut from a complete workspace of an invented busi
|
|
|
4
4
|
read, where the treatment is wrong, and the excerpt — the app's tree, the App node `set_app` takes as `body`,
|
|
5
5
|
which the check passes with no finding; the tables it draws as the items of a `set_tables` call, each with its
|
|
6
6
|
`title` and `records`; those tables' fields it names, by what each holds and how it is drawn; and the templates it makes.
|
|
7
|
-
Left out, for the page's size: a Section that carries nothing of the treatment, every `label` and `description` of a table or field, `required`, `min`, `unique`, `default` (a section keeps the ones its **Read** rests on), a link's
|
|
7
|
+
Left out, for the page's size: a Section or page that carries nothing of the treatment, every `label` and `description` of a table or field, `required`, `min`, `unique`, `default` (a section keeps the ones its **Read** rests on), a link's
|
|
8
8
|
`pair`, how a computed field computes, the `tables` and `templates` maps an App adds (ids from the
|
|
9
9
|
`set_tables` answer), and template contents — a call states each table's and field's `label`. Choosing
|
|
10
10
|
among them: the `design` reference. Every key: `reference`, at the pages each section names under
|
|
@@ -87,18 +87,11 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
87
87
|
{
|
|
88
88
|
"type": "List",
|
|
89
89
|
"entity": "service_visit",
|
|
90
|
-
"row": {"title": {"add": ["name", "credit_limit"]}},
|
|
91
90
|
"columns": ["engineer", "job"],
|
|
92
91
|
"filters": ["customer"],
|
|
93
92
|
"sort": {"field": "scheduled_for"},
|
|
94
93
|
"layout": "calendar",
|
|
95
|
-
"create": [
|
|
96
|
-
"customer",
|
|
97
|
-
"job",
|
|
98
|
-
"scheduled_for",
|
|
99
|
-
"ends_at",
|
|
100
|
-
{"field": "engineer", "add": ["name", {"field": "base", "add": ["name", "city"]}]}
|
|
101
|
-
],
|
|
94
|
+
"create": ["customer", "job", "scheduled_for", "ends_at", "engineer"],
|
|
102
95
|
"children": [
|
|
103
96
|
{"type": "Reading", "key": "register_reading_0", "label": "Repairs", "where": {"job": ["repair"]}},
|
|
104
97
|
{"type": "Reading", "key": "register_reading_1", "value": "hours", "by": "engineer"}
|
|
@@ -191,7 +184,10 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
191
184
|
]
|
|
192
185
|
}
|
|
193
186
|
]
|
|
194
|
-
}
|
|
187
|
+
},
|
|
188
|
+
{"type": "Record", "entity": "warehouse", "add": ["name", "city"]},
|
|
189
|
+
{"type": "Record", "entity": "engineer", "add": ["name", "base"]},
|
|
190
|
+
{"type": "Record", "entity": "customer", "add": ["name", "credit_limit"]}
|
|
195
191
|
]
|
|
196
192
|
}
|
|
197
193
|
}
|
|
@@ -278,20 +274,10 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
278
274
|
{
|
|
279
275
|
"type": "List",
|
|
280
276
|
"entity": "service_visit",
|
|
281
|
-
"row": {
|
|
282
|
-
"title": {"add": ["name", "credit_limit"]},
|
|
283
|
-
"subtitle": [{"field": "scheduled_for", "edit": false}, {"field": "ends_at", "edit": false}]
|
|
284
|
-
},
|
|
285
277
|
"columns": ["job"],
|
|
286
278
|
"search": ["customer"],
|
|
287
279
|
"layout": {"lanes": {"by": "engineer"}},
|
|
288
|
-
"create": [
|
|
289
|
-
{"field": "engineer", "add": ["name", {"field": "base", "add": ["name", "city"]}]},
|
|
290
|
-
"scheduled_for",
|
|
291
|
-
"ends_at",
|
|
292
|
-
"customer",
|
|
293
|
-
"job"
|
|
294
|
-
]
|
|
280
|
+
"create": ["engineer", "scheduled_for", "ends_at", "customer", "job"]
|
|
295
281
|
}
|
|
296
282
|
],
|
|
297
283
|
"pages": [
|
|
@@ -349,8 +335,12 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
349
335
|
}
|
|
350
336
|
]
|
|
351
337
|
}
|
|
352
|
-
]
|
|
353
|
-
|
|
338
|
+
],
|
|
339
|
+
"row": {"subtitle": [{"field": "scheduled_for", "edit": false}, {"field": "ends_at", "edit": false}]}
|
|
340
|
+
},
|
|
341
|
+
{"type": "Record", "entity": "warehouse", "add": ["name", "city"]},
|
|
342
|
+
{"type": "Record", "entity": "engineer", "add": ["name", "base"]},
|
|
343
|
+
{"type": "Record", "entity": "customer", "add": ["name", "credit_limit"]}
|
|
354
344
|
]
|
|
355
345
|
}
|
|
356
346
|
}
|
|
@@ -417,7 +407,6 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
417
407
|
{
|
|
418
408
|
"type": "List",
|
|
419
409
|
"entity": "phieu_thue",
|
|
420
|
-
"row": {"title": {"add": true}},
|
|
421
410
|
"columns": ["phu_trach"],
|
|
422
411
|
"filters": ["phu_trach", "khach_hang"],
|
|
423
412
|
"layout": {"gantt": {"start": "ngay_giao"}},
|
|
@@ -467,11 +456,20 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
467
456
|
"asks": ["tinh_trang_tra"],
|
|
468
457
|
"set": {"trang_thai": "da_tra"},
|
|
469
458
|
"confirm": true
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"type": "Act",
|
|
462
|
+
"key": "mo_lai",
|
|
463
|
+
"label": "Mở lại",
|
|
464
|
+
"when": {"trang_thai": ["da_tra"]},
|
|
465
|
+
"set": {"trang_thai": "dang_thue"},
|
|
466
|
+
"confirm": true
|
|
470
467
|
}
|
|
471
468
|
]
|
|
472
469
|
}
|
|
473
470
|
]
|
|
474
|
-
}
|
|
471
|
+
},
|
|
472
|
+
{"type": "Record", "entity": "khach_hang", "add": true}
|
|
475
473
|
]
|
|
476
474
|
}
|
|
477
475
|
}
|
|
@@ -541,16 +539,12 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
541
539
|
"filters": ["chuyen_mon"],
|
|
542
540
|
"layout": "roster",
|
|
543
541
|
"create": ["ho_ten", "chuyen_mon", "dien_thoai"],
|
|
544
|
-
"children": [
|
|
545
|
-
{
|
|
546
|
-
"type": "List",
|
|
547
|
-
"entity": "lich_truc",
|
|
548
|
-
"row": {"subtitle": ["ngay", {"field": "ghe", "add": ["ten", "phong"]}]},
|
|
549
|
-
"create": true,
|
|
550
|
-
"remove": true
|
|
551
|
-
}
|
|
552
|
-
]
|
|
542
|
+
"children": [{"type": "List", "entity": "lich_truc", "create": true, "remove": true}]
|
|
553
543
|
}
|
|
544
|
+
],
|
|
545
|
+
"pages": [
|
|
546
|
+
{"type": "Record", "entity": "lich_truc", "row": {"subtitle": ["ngay", "ghe"]}},
|
|
547
|
+
{"type": "Record", "entity": "ghe", "add": ["ten", "phong"]}
|
|
554
548
|
]
|
|
555
549
|
}
|
|
556
550
|
}
|
|
@@ -691,31 +685,18 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
691
685
|
"type": "Section",
|
|
692
686
|
"key": "on_order",
|
|
693
687
|
"title": "On order",
|
|
694
|
-
"children": [
|
|
695
|
-
{
|
|
696
|
-
"type": "List",
|
|
697
|
-
"entity": "order_line",
|
|
698
|
-
"row": {
|
|
699
|
-
"subtitle": [
|
|
700
|
-
{
|
|
701
|
-
"field": "order",
|
|
702
|
-
"add": [{"field": "customer", "add": ["name", "credit_limit"]}, "reference"]
|
|
703
|
-
},
|
|
704
|
-
"unit_price"
|
|
705
|
-
]
|
|
706
|
-
},
|
|
707
|
-
"columns": ["quantity"],
|
|
708
|
-
"children": [{"type": "Check", "field": "settled", "on": ["update"]}]
|
|
709
|
-
}
|
|
710
|
-
]
|
|
688
|
+
"children": [{"type": "List", "entity": "order_line", "columns": ["quantity"]}]
|
|
711
689
|
}
|
|
712
690
|
]
|
|
713
691
|
},
|
|
714
692
|
{
|
|
715
693
|
"type": "Record",
|
|
716
694
|
"entity": "order_line",
|
|
717
|
-
"children": ["
|
|
718
|
-
|
|
695
|
+
"children": ["quantity", "shipped", {"type": "Check", "field": "settled", "on": ["update"]}],
|
|
696
|
+
"row": {"subtitle": ["order", "unit_price"]}
|
|
697
|
+
},
|
|
698
|
+
{"type": "Record", "entity": "customer", "add": ["name", "credit_limit"]},
|
|
699
|
+
{"type": "Record", "entity": "order", "add": ["customer", "reference"]}
|
|
719
700
|
]
|
|
720
701
|
}
|
|
721
702
|
}
|
|
@@ -885,8 +866,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
885
866
|
"create": ["name", "code", "credit_limit"],
|
|
886
867
|
"children": [
|
|
887
868
|
{"type": "Reading", "key": "register_reading_0", "value": "outstanding", "by": "tier"},
|
|
888
|
-
{"type": "Reading", "key": "register_reading_1", "value": "outstanding", "by": "account_manager"}
|
|
889
|
-
{"type": "Check", "field": "over_limit"}
|
|
869
|
+
{"type": "Reading", "key": "register_reading_1", "value": "outstanding", "by": "account_manager"}
|
|
890
870
|
]
|
|
891
871
|
}
|
|
892
872
|
],
|
|
@@ -961,11 +941,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
961
941
|
"where": {"stage": ["draft", "confirmed", "picking", "shipped"]},
|
|
962
942
|
"label": "Open orders",
|
|
963
943
|
"columns": ["due_date"],
|
|
964
|
-
"create": false
|
|
965
|
-
"children": [
|
|
966
|
-
{"type": "Check", "field": "paid_in_full", "on": ["update"]},
|
|
967
|
-
{"type": "Check", "field": "has_payments"}
|
|
968
|
-
]
|
|
944
|
+
"create": false
|
|
969
945
|
},
|
|
970
946
|
{
|
|
971
947
|
"type": "List",
|
|
@@ -980,11 +956,9 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
980
956
|
"type": "List",
|
|
981
957
|
"key": "block_reading_3",
|
|
982
958
|
"entity": "service_visit",
|
|
983
|
-
"app": "visits",
|
|
984
959
|
"label": "Service visits",
|
|
985
960
|
"columns": ["engineer", "job"],
|
|
986
|
-
"edit": false
|
|
987
|
-
"fields": ["report", "arrived_on", "completed_on"]
|
|
961
|
+
"edit": false
|
|
988
962
|
}
|
|
989
963
|
]
|
|
990
964
|
},
|
|
@@ -1007,7 +981,8 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1007
981
|
"title": "Contact log",
|
|
1008
982
|
"children": [{"type": "List", "entity": "touch", "layout": "timeline"}]
|
|
1009
983
|
},
|
|
1010
|
-
{"type": "Section", "key": "notes", "title": "Notes", "children": ["notes"]}
|
|
984
|
+
{"type": "Section", "key": "notes", "title": "Notes", "children": ["notes"]},
|
|
985
|
+
{"type": "Check", "field": "over_limit"}
|
|
1011
986
|
]
|
|
1012
987
|
},
|
|
1013
988
|
{
|
|
@@ -1017,17 +992,8 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1017
992
|
"due_date",
|
|
1018
993
|
"handler",
|
|
1019
994
|
{"field": "priority", "edit": false},
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
"add": [
|
|
1023
|
-
{
|
|
1024
|
-
"field": "item",
|
|
1025
|
-
"add": ["name", {"field": "warehouse", "add": ["name", "city"]}, "sku", "category"]
|
|
1026
|
-
},
|
|
1027
|
-
"quantity"
|
|
1028
|
-
]
|
|
1029
|
-
},
|
|
1030
|
-
{"field": "payments", "add": true},
|
|
995
|
+
"lines",
|
|
996
|
+
"payments",
|
|
1031
997
|
{"field": "carrier", "edit": false},
|
|
1032
998
|
{"field": "tracking_no", "edit": false},
|
|
1033
999
|
{"field": "shipped_on", "edit": false},
|
|
@@ -1037,10 +1003,15 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1037
1003
|
{"field": "attachments", "edit": false},
|
|
1038
1004
|
"delivery_note",
|
|
1039
1005
|
"notes",
|
|
1040
|
-
{"field": "reminder_ref", "edit": false}
|
|
1006
|
+
{"field": "reminder_ref", "edit": false},
|
|
1007
|
+
{"type": "Check", "field": "paid_in_full", "on": ["update"]},
|
|
1008
|
+
{"type": "Check", "field": "has_payments"}
|
|
1041
1009
|
]
|
|
1042
1010
|
},
|
|
1043
|
-
{"type": "Record", "entity": "
|
|
1011
|
+
{"type": "Record", "entity": "warehouse", "add": ["name", "city"]},
|
|
1012
|
+
{"type": "Record", "entity": "stock_item", "add": ["name", "warehouse", "sku", "category"]},
|
|
1013
|
+
{"type": "Record", "entity": "order_line", "add": ["item", "quantity"]},
|
|
1014
|
+
{"type": "Record", "entity": "payment", "add": true}
|
|
1044
1015
|
]
|
|
1045
1016
|
}
|
|
1046
1017
|
}
|
|
@@ -1130,7 +1101,6 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1130
1101
|
"dien_thoai": {"type": "lookup"},
|
|
1131
1102
|
"cccd": {"type": "lookup"},
|
|
1132
1103
|
"ngay_sinh": {"type": "lookup"},
|
|
1133
|
-
"dia_chi": {"type": "lookup"},
|
|
1134
1104
|
"da_thu": {"type": "rollup"},
|
|
1135
1105
|
"chua_thu_phi": {"type": "formula"},
|
|
1136
1106
|
"con_no_phi": {"type": "formula"},
|
|
@@ -1196,8 +1166,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1196
1166
|
},
|
|
1197
1167
|
"ho_so": {"type": "link", "table": "ho_so", "multi": false},
|
|
1198
1168
|
"ngay_nhan": {"type": "date"},
|
|
1199
|
-
"tep": {"type": "files"}
|
|
1200
|
-
"phai_sua": {"type": "formula"}
|
|
1169
|
+
"tep": {"type": "files"}
|
|
1201
1170
|
},
|
|
1202
1171
|
"records": {"image": "tep", "starts": {"ngay_nhan": "today"}}
|
|
1203
1172
|
},
|
|
@@ -1257,7 +1226,6 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1257
1226
|
{
|
|
1258
1227
|
"type": "List",
|
|
1259
1228
|
"entity": "ho_so",
|
|
1260
|
-
"row": {"title": {"add": true}},
|
|
1261
1229
|
"columns": ["xu_ly", "can_bo_sung", "doi_tuong"],
|
|
1262
1230
|
"filters": ["xu_ly", "can_bo_sung"],
|
|
1263
1231
|
"search": ["khach_hang", "ma_ho_so", "dien_thoai"],
|
|
@@ -1278,10 +1246,6 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1278
1246
|
},
|
|
1279
1247
|
{"type": "Reading", "key": "register_reading_2", "by": "doi_tuong"},
|
|
1280
1248
|
{"type": "Export", "key": "export"},
|
|
1281
|
-
{"type": "Check", "field": "chua_thu_phi", "on": ["nop_cdt"]},
|
|
1282
|
-
{"type": "Check", "field": "con_no_phi"},
|
|
1283
|
-
{"type": "Check", "field": "vuot_thu_nhap"},
|
|
1284
|
-
{"type": "Check", "field": "da_hoan_tat", "on": ["doc_giay_to"]},
|
|
1285
1249
|
{
|
|
1286
1250
|
"type": "Act",
|
|
1287
1251
|
"key": "in_danh_sach",
|
|
@@ -1334,8 +1298,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1334
1298
|
"entity": "giay_to",
|
|
1335
1299
|
"expect": {"field": "loai", "only": ["can_cuoc", "hon_nhan"]},
|
|
1336
1300
|
"label": "Giấy tờ cá nhân",
|
|
1337
|
-
"columns": ["ngay_nhan"]
|
|
1338
|
-
"children": [{"type": "Check", "field": "phai_sua"}]
|
|
1301
|
+
"columns": ["ngay_nhan"]
|
|
1339
1302
|
},
|
|
1340
1303
|
{
|
|
1341
1304
|
"type": "Act",
|
|
@@ -1371,8 +1334,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1371
1334
|
"label": "Sang dự án",
|
|
1372
1335
|
"type": "link",
|
|
1373
1336
|
"entity": "du_an",
|
|
1374
|
-
"required": true
|
|
1375
|
-
"add": ["ten_du_an", "chu_dau_tu", "so_can"]
|
|
1337
|
+
"required": true
|
|
1376
1338
|
}
|
|
1377
1339
|
],
|
|
1378
1340
|
"set": {"du_an": {"input": "du_an_moi"}},
|
|
@@ -1436,14 +1398,14 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1436
1398
|
"set": {"giai_doan": "ngay_ban_giao"}
|
|
1437
1399
|
}
|
|
1438
1400
|
]
|
|
1439
|
-
}
|
|
1401
|
+
},
|
|
1402
|
+
{"type": "Check", "field": "chua_thu_phi", "on": ["nop_cdt"]},
|
|
1403
|
+
{"type": "Check", "field": "con_no_phi"},
|
|
1404
|
+
{"type": "Check", "field": "vuot_thu_nhap"},
|
|
1405
|
+
{"type": "Check", "field": "da_hoan_tat", "on": ["doc_giay_to"]}
|
|
1440
1406
|
]
|
|
1441
1407
|
},
|
|
1442
|
-
{
|
|
1443
|
-
"type": "Record",
|
|
1444
|
-
"entity": "khach_hang",
|
|
1445
|
-
"children": [{"type": "Section", "key": "nhan_than", "title": "Nhân thân", "children": ["ngay_sinh", "dia_chi"]}]
|
|
1446
|
-
}
|
|
1408
|
+
{"type": "Record", "entity": "du_an", "add": ["ten_du_an", "chu_dau_tu", "so_can"]}
|
|
1447
1409
|
]
|
|
1448
1410
|
}
|
|
1449
1411
|
}
|
|
@@ -1665,13 +1627,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1665
1627
|
"entity": "khach_tiem_nang",
|
|
1666
1628
|
"columns": ["phu_trach", "han_buoc_tiep"],
|
|
1667
1629
|
"filters": ["phu_trach"],
|
|
1668
|
-
"create": [
|
|
1669
|
-
"ho_ten",
|
|
1670
|
-
"trang_ca_nhan",
|
|
1671
|
-
"so_dien_thoai",
|
|
1672
|
-
"ten_cong_ty",
|
|
1673
|
-
{"field": "nguon", "add": ["ten", "loai"]}
|
|
1674
|
-
],
|
|
1630
|
+
"create": ["ho_ten", "trang_ca_nhan", "so_dien_thoai", "ten_cong_ty", "nguon"],
|
|
1675
1631
|
"children": [
|
|
1676
1632
|
{"type": "Reading", "key": "register_reading_0", "by": "phu_trach"},
|
|
1677
1633
|
{
|
|
@@ -1679,8 +1635,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1679
1635
|
"key": "register_reading_1",
|
|
1680
1636
|
"label": "Khách chuyển đổi",
|
|
1681
1637
|
"by": "ngay_chuyen_doi"
|
|
1682
|
-
}
|
|
1683
|
-
{"type": "Check", "field": "khong_lien_he", "resolve": "da_lien_he"}
|
|
1638
|
+
}
|
|
1684
1639
|
]
|
|
1685
1640
|
}
|
|
1686
1641
|
],
|
|
@@ -1734,16 +1689,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1734
1689
|
"entity": "buoc_tiep",
|
|
1735
1690
|
"label": "Bước tiếp theo",
|
|
1736
1691
|
"columns": ["ban_nhap"],
|
|
1737
|
-
"create": ["vi_sao_luc_nay", "viec", "han", "ban_nhap"]
|
|
1738
|
-
"children": [
|
|
1739
|
-
{
|
|
1740
|
-
"type": "Act",
|
|
1741
|
-
"key": "lam_xong",
|
|
1742
|
-
"label": "Đã làm",
|
|
1743
|
-
"when": {"tinh_trang": ["cho"]},
|
|
1744
|
-
"set": {"tinh_trang": "xong"}
|
|
1745
|
-
}
|
|
1746
|
-
]
|
|
1692
|
+
"create": ["vi_sao_luc_nay", "viec", "han", "ban_nhap"]
|
|
1747
1693
|
},
|
|
1748
1694
|
{
|
|
1749
1695
|
"type": "List",
|
|
@@ -1809,8 +1755,30 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1809
1755
|
"asks": ["ly_do_loai"],
|
|
1810
1756
|
"set": {"trang_thai": "loai"},
|
|
1811
1757
|
"danger": true
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
"type": "Act",
|
|
1761
|
+
"key": "mo_lai",
|
|
1762
|
+
"label": "Mở lại",
|
|
1763
|
+
"when": {"trang_thai": ["loai"]},
|
|
1764
|
+
"set": {"trang_thai": "moi"}
|
|
1812
1765
|
}
|
|
1813
1766
|
]
|
|
1767
|
+
},
|
|
1768
|
+
{"type": "Check", "field": "khong_lien_he", "resolve": "da_lien_he"}
|
|
1769
|
+
]
|
|
1770
|
+
},
|
|
1771
|
+
{"type": "Record", "entity": "kenh", "add": ["ten", "loai"]},
|
|
1772
|
+
{
|
|
1773
|
+
"type": "Record",
|
|
1774
|
+
"entity": "buoc_tiep",
|
|
1775
|
+
"children": [
|
|
1776
|
+
{
|
|
1777
|
+
"type": "Act",
|
|
1778
|
+
"key": "lam_xong",
|
|
1779
|
+
"label": "Đã làm",
|
|
1780
|
+
"when": {"tinh_trang": ["cho"]},
|
|
1781
|
+
"set": {"tinh_trang": "xong"}
|
|
1814
1782
|
}
|
|
1815
1783
|
]
|
|
1816
1784
|
}
|
|
@@ -1920,19 +1888,10 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1920
1888
|
{
|
|
1921
1889
|
"type": "List",
|
|
1922
1890
|
"entity": "de_nghi",
|
|
1923
|
-
"row": {"subtitle": [{"field": "du_an", "add": ["ten", "ma_du_an", "chu_dau_tu", "ngan_sach"]}]},
|
|
1924
1891
|
"columns": ["nguoi_de_nghi"],
|
|
1925
|
-
"filters": ["
|
|
1892
|
+
"filters": ["du_an"],
|
|
1926
1893
|
"group": "du_an",
|
|
1927
|
-
"create": [
|
|
1928
|
-
"noi_dung",
|
|
1929
|
-
"loai",
|
|
1930
|
-
"du_an",
|
|
1931
|
-
{"field": "nha_cung_cap", "add": true},
|
|
1932
|
-
"so_tien",
|
|
1933
|
-
"han_thanh_toan",
|
|
1934
|
-
"nguoi_de_nghi"
|
|
1935
|
-
],
|
|
1894
|
+
"create": ["noi_dung", "loai", "du_an", "nha_cung_cap", "so_tien", "han_thanh_toan", "nguoi_de_nghi"],
|
|
1936
1895
|
"children": [
|
|
1937
1896
|
{
|
|
1938
1897
|
"type": "Reading",
|
|
@@ -1941,10 +1900,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
1941
1900
|
"value": "so_tien",
|
|
1942
1901
|
"where": {"trang_thai": ["da_duyet"]}
|
|
1943
1902
|
},
|
|
1944
|
-
{"type": "Reading", "key": "register_reading_1", "value": "so_tien", "by": "han_thanh_toan"}
|
|
1945
|
-
{"type": "Check", "field": "da_gui", "on": ["update"]},
|
|
1946
|
-
{"type": "Check", "field": "vuot_ngan_sach"},
|
|
1947
|
-
{"type": "Check", "field": "sat_ngan_sach"}
|
|
1903
|
+
{"type": "Reading", "key": "register_reading_1", "value": "so_tien", "by": "han_thanh_toan"}
|
|
1948
1904
|
]
|
|
1949
1905
|
}
|
|
1950
1906
|
],
|
|
@@ -2001,9 +1957,15 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
2001
1957
|
"title": "Đã chi",
|
|
2002
1958
|
"at": ["da_chi"],
|
|
2003
1959
|
"children": [{"field": "phieu_chi", "label": "Phiếu chi", "edit": false}]
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
|
-
|
|
1960
|
+
},
|
|
1961
|
+
{"type": "Check", "field": "da_gui", "on": ["update"]},
|
|
1962
|
+
{"type": "Check", "field": "vuot_ngan_sach"},
|
|
1963
|
+
{"type": "Check", "field": "sat_ngan_sach"}
|
|
1964
|
+
],
|
|
1965
|
+
"row": {"subtitle": ["du_an"]}
|
|
1966
|
+
},
|
|
1967
|
+
{"type": "Record", "entity": "nha_cung_cap", "add": true},
|
|
1968
|
+
{"type": "Record", "entity": "du_an", "add": ["ten", "ma_du_an", "chu_dau_tu", "ngan_sach"]}
|
|
2007
1969
|
]
|
|
2008
1970
|
}
|
|
2009
1971
|
}
|
|
@@ -2013,7 +1975,7 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
2013
1975
|
|
|
2014
1976
|
**The job.** The owner's question — what came in, what went out, where it went, and what is still unmatched — answered over one period.
|
|
2015
1977
|
|
|
2016
|
-
**Read.** An App of Readings and no List: Readings with `over` (the period windows them), a Reading `by` the day, Readings `by` a field, and a List of rows to act on
|
|
1978
|
+
**Read.** An App of Readings and no List: Readings with `over` (the period windows them), a Reading `by` the day, Readings `by` a field, and a List of rows to act on.
|
|
2017
1979
|
|
|
2018
1980
|
**Keys.** `reference/app-node`, `reference/reading-node`
|
|
2019
1981
|
|
|
@@ -2091,85 +2053,91 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
|
|
|
2091
2053
|
"color": "emerald",
|
|
2092
2054
|
"children": [
|
|
2093
2055
|
{
|
|
2094
|
-
"type": "
|
|
2095
|
-
"key": "
|
|
2096
|
-
"label": "
|
|
2097
|
-
"
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2056
|
+
"type": "Sheet",
|
|
2057
|
+
"key": "dong_tien",
|
|
2058
|
+
"label": "Dòng tiền",
|
|
2059
|
+
"children": [
|
|
2060
|
+
{
|
|
2061
|
+
"type": "Reading",
|
|
2062
|
+
"key": "dashboard_reading_0",
|
|
2063
|
+
"label": "Tiền vào",
|
|
2064
|
+
"entity": "giao_dich",
|
|
2065
|
+
"value": "so_tien",
|
|
2066
|
+
"where": {"loai": ["thu"]},
|
|
2067
|
+
"over": "ngay"
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
"type": "Reading",
|
|
2071
|
+
"key": "dashboard_reading_1",
|
|
2072
|
+
"label": "Tiền ra",
|
|
2073
|
+
"entity": "giao_dich",
|
|
2074
|
+
"value": "so_tien",
|
|
2075
|
+
"where": {"loai": ["chi"]},
|
|
2076
|
+
"over": "ngay",
|
|
2077
|
+
"better": "down"
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
"type": "Reading",
|
|
2081
|
+
"key": "dashboard_reading_2",
|
|
2082
|
+
"label": "Dòng tiền ròng",
|
|
2083
|
+
"entity": "giao_dich",
|
|
2084
|
+
"value": "bien_dong",
|
|
2085
|
+
"by": "ngay"
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
"type": "Reading",
|
|
2089
|
+
"key": "dashboard_reading_3",
|
|
2090
|
+
"label": "Chi theo danh mục",
|
|
2091
|
+
"entity": "giao_dich",
|
|
2092
|
+
"value": "so_tien",
|
|
2093
|
+
"where": {"loai": ["chi"]},
|
|
2094
|
+
"by": "danh_muc",
|
|
2095
|
+
"over": "ngay"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"type": "Reading",
|
|
2099
|
+
"key": "dashboard_reading_4",
|
|
2100
|
+
"label": "Thu theo khách hàng",
|
|
2101
|
+
"entity": "giao_dich",
|
|
2102
|
+
"value": "so_tien",
|
|
2103
|
+
"where": {"loai": ["thu"]},
|
|
2104
|
+
"by": "doi_tuong",
|
|
2105
|
+
"over": "ngay"
|
|
2106
|
+
},
|
|
2107
|
+
{
|
|
2108
|
+
"type": "Reading",
|
|
2109
|
+
"key": "dashboard_reading_5",
|
|
2110
|
+
"label": "Công nợ bán ra theo tuổi nợ",
|
|
2111
|
+
"entity": "hoa_don",
|
|
2112
|
+
"value": "tong_cong",
|
|
2113
|
+
"where": {"chieu": ["ban_ra"]},
|
|
2114
|
+
"by": "doi_tuong",
|
|
2115
|
+
"across": {"field": "so_ngay_qua_han", "tiers": [1, 8, 16, 31]}
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
"type": "Reading",
|
|
2119
|
+
"key": "dashboard_reading_6",
|
|
2120
|
+
"label": "Số ngày quá hạn bình quân",
|
|
2121
|
+
"entity": "hoa_don",
|
|
2122
|
+
"value": {"avg": "so_ngay_qua_han"},
|
|
2123
|
+
"where": {"chieu": ["ban_ra"]}
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
"type": "Reading",
|
|
2127
|
+
"key": "dashboard_reading_7",
|
|
2128
|
+
"label": "Thuế suất bình quân",
|
|
2129
|
+
"entity": "hoa_don",
|
|
2130
|
+
"value": {"avg": "thue_suat"}
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
"type": "List",
|
|
2134
|
+
"key": "dashboard_reading_8",
|
|
2135
|
+
"entity": "giao_dich",
|
|
2136
|
+
"where": {"trang_thai": ["chua_khop"]},
|
|
2137
|
+
"label": "Dòng chưa khớp",
|
|
2138
|
+
"columns": ["sao_ke"]
|
|
2139
|
+
}
|
|
2140
|
+
]
|
|
2173
2141
|
}
|
|
2174
2142
|
]
|
|
2175
2143
|
}
|