Work on reports for LCI

This commit is contained in:
Scott Idem
2025-09-08 17:12:44 -04:00
parent 88c4f4e891
commit 438d366b98
3 changed files with 126 additions and 11 deletions

View File

@@ -384,6 +384,7 @@ export async function qry__event_file(
event_id,
qry_created_on = null, // Example greater than: '2024-10-24'
qry_min_file_size = null,
qry_file_purpose = null,
enabled = 'enabled',
hidden = 'not_hidden',
limit = 50,
@@ -397,6 +398,7 @@ export async function qry__event_file(
event_id: any,
qry_created_on?: null|string,
qry_min_file_size?: null|number,
qry_file_purpose?: null|string,
enabled?: string,
hidden?: string,
limit?: number,
@@ -427,7 +429,7 @@ export async function qry__event_file(
}
if (qry_min_file_size) {
console.log('qry_min_file_size:', qry_min_file_size);
// console.log('qry_min_file_size:', qry_min_file_size);
let qry_param =
{
type: "AND",
@@ -438,6 +440,21 @@ export async function qry__event_file(
params_json['qry'].push(qry_param);
}
if (qry_file_purpose) {
let qry_param =
{
type: "AND",
field: "file_purpose",
operator: "=",
value: qry_file_purpose
};
params_json['qry'].push(qry_param);
}
if (log_lvl) {
console.log('params_json:', params_json);
}
ae_promises.load__event_file_obj_li = await api.get_ae_obj_li_for_obj_id_crud_v2({
api_cfg: api_cfg,
obj_type: 'event_file',