Lots of work related to the IDAA Recovery Meetings. Better pulling in off lookup list data.
This commit is contained in:
@@ -29,6 +29,7 @@ export async function load_ae_obj_li__country(
|
||||
let limit: number = (params.qry__limit ?? 300); // Actual is 249 in 2024
|
||||
let offset: number = (params.qry__offset ?? 0); // 0
|
||||
|
||||
let order_by_li = {'sort': 'DESC', 'english_short_name': 'ASC', 'alpha_2_code': 'ASC'};
|
||||
|
||||
let params_json: key_val = {};
|
||||
|
||||
@@ -43,7 +44,7 @@ export async function load_ae_obj_li__country(
|
||||
use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value
|
||||
enabled: enabled,
|
||||
hidden: hidden,
|
||||
order_by_li: {'english_short_name': 'ASC'},
|
||||
order_by_li: order_by_li,
|
||||
limit: limit,
|
||||
offset: offset,
|
||||
params_json: params_json,
|
||||
|
||||
@@ -8,27 +8,30 @@ let ae_promises: key_val = {};
|
||||
|
||||
// Updated 2024-10-14
|
||||
export async function load_ae_obj_li__country_subdivision(
|
||||
{
|
||||
api_cfg,
|
||||
// account_id,
|
||||
params = {},
|
||||
try_cache = true,
|
||||
log_lvl = 0
|
||||
}: {
|
||||
api_cfg: any,
|
||||
// account_id: string,
|
||||
params?: key_val,
|
||||
try_cache?: boolean,
|
||||
log_lvl?: number
|
||||
}
|
||||
) {
|
||||
console.log(`*** load_ae_obj_li__country_subdivision() ***`);
|
||||
{
|
||||
api_cfg,
|
||||
// account_id,
|
||||
params = {},
|
||||
try_cache = true,
|
||||
log_lvl = 0
|
||||
}: {
|
||||
api_cfg: any,
|
||||
// account_id: string,
|
||||
params?: key_val,
|
||||
try_cache?: boolean,
|
||||
log_lvl?: number
|
||||
}
|
||||
) {
|
||||
if (log_lvl) {
|
||||
console.log(`*** load_ae_obj_li__country_subdivision() ***`);
|
||||
}
|
||||
|
||||
let enabled: string = (params.qry__enabled ?? 'enabled'); // all, disabled, enabled
|
||||
let hidden: string = (params.qry__hidden ?? 'not_hidden'); // all, hidden, not_hidden
|
||||
let limit: number = (params.qry__limit ?? 300); // Actual is 249 in 2024
|
||||
let offset: number = (params.qry__offset ?? 0); // 0
|
||||
|
||||
let order_by_li = {'sort': 'DESC', 'name': 'ASC', 'code': 'ASC'};
|
||||
|
||||
let params_json: key_val = {};
|
||||
|
||||
@@ -43,7 +46,7 @@ export async function load_ae_obj_li__country_subdivision(
|
||||
use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value
|
||||
enabled: enabled,
|
||||
hidden: hidden,
|
||||
order_by_li: {'name': 'ASC', 'code': 'ASC'},
|
||||
order_by_li: order_by_li,
|
||||
limit: limit,
|
||||
offset: offset,
|
||||
params_json: params_json,
|
||||
|
||||
Reference in New Issue
Block a user