-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport_form.sql
49 lines (48 loc) · 1.11 KB
/
report_form.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
select * from shell;
select
'form' as component,
'create_report.sql' as action,
'Report creation' as title,
'Create report' as validate,
'Clear' as reset;
select
'Ticket number' as label,
'TICKETID' as name,
'select' as type,
(select json_group_array(
json_object(
'label', ticketnumber || ' - ' || ticketdesc,
'value', ticketid
)
)
) as options
from TICKETS;
select
'Activity code' as label,
'ACTIVITY' as name;
select
'Billing code' as label,
'BILLINGCODE' as name,
'select' as type,
(select json_group_array(
json_object(
'label', billingcodeid || ' - ' || billingcode,
'value', billingcodeid
)
)
) as options
from BILLINGCODES;
select
'Date of report' as label,
'DATEOFREPORT' as name,
'date' as type;
select
'Arrival time' as label,
'ARRIVALTIME' as name,
'HH:MM' as placeholder,
6 as width;
select
'Exit time' as label,
'EXITTIME' as name,
'HH:MM' as placeholder,
6 as width;