Improving the reports
This commit is contained in:
@@ -450,7 +450,7 @@ export async function search__event_presenter(
|
||||
|
||||
params_json['and_qry'] = {};
|
||||
|
||||
if (agree) {
|
||||
if (agree === true || agree === false) {
|
||||
params_json['and_qry']['agree'] = agree;
|
||||
}
|
||||
|
||||
|
||||
@@ -409,6 +409,8 @@ export async function qry__event_session(
|
||||
qry_str,
|
||||
qry_files,
|
||||
qry_start_datetime, // Example greater than: '2024-10-24'
|
||||
qry_poc_agree = null,
|
||||
qry_poc_kv_json,
|
||||
enabled = 'enabled',
|
||||
hidden = 'not_hidden',
|
||||
limit = 50,
|
||||
@@ -422,6 +424,8 @@ export async function qry__event_session(
|
||||
qry_str?: string,
|
||||
qry_files?: null|boolean,
|
||||
qry_start_datetime?: null|string, // Greater than this datetime
|
||||
qry_poc_agree?: null|boolean,
|
||||
qry_poc_kv_json?: null|boolean, // Key value pairs for the point of contact
|
||||
enabled?: string, // all, disabled, enabled
|
||||
hidden?: string, // all, hidden, not_hidden
|
||||
limit?: number,
|
||||
@@ -478,6 +482,55 @@ export async function qry__event_session(
|
||||
params_json['qry'].push(qry_param);
|
||||
}
|
||||
|
||||
if (qry_poc_agree === true) {
|
||||
let qry_param =
|
||||
{
|
||||
type: "AND",
|
||||
field: "poc_agree",
|
||||
operator: "=",
|
||||
value: true
|
||||
};
|
||||
params_json['qry'].push(qry_param);
|
||||
} else if (qry_poc_agree === false) {
|
||||
// let qry_param =
|
||||
// {
|
||||
// type: "AND",
|
||||
// field: "poc_agree",
|
||||
// operator: "IS",
|
||||
// value: null
|
||||
// };
|
||||
// params_json['qry'].push(qry_param);
|
||||
let qry_param =
|
||||
{
|
||||
type: "AND",
|
||||
field: "poc_agree",
|
||||
operator: "=",
|
||||
value: false
|
||||
};
|
||||
params_json['qry'].push(qry_param);
|
||||
}
|
||||
|
||||
|
||||
if (qry_poc_kv_json === true) {
|
||||
let qry_param =
|
||||
{
|
||||
type: "AND",
|
||||
field: "poc_kv_json",
|
||||
operator: "IS NOT",
|
||||
value: null
|
||||
};
|
||||
params_json['qry'].push(qry_param);
|
||||
} else if (qry_poc_kv_json === false) {
|
||||
let qry_param =
|
||||
{
|
||||
type: "AND",
|
||||
field: "poc_kv_json",
|
||||
operator: "IS",
|
||||
value: null
|
||||
};
|
||||
params_json['qry'].push(qry_param);
|
||||
}
|
||||
|
||||
let order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'start_datetime': 'ASC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'};
|
||||
|
||||
ae_promises.load__event_session_obj_li = await api.get_ae_obj_li_for_obj_id_crud_v2({
|
||||
|
||||
Reference in New Issue
Block a user