update option function

This commit is contained in:
wayanrivan
2026-04-15 11:16:32 +07:00
parent f68ff49323
commit 4a0c0fd6c6
6 changed files with 6 additions and 6 deletions

View File

@ -141,7 +141,7 @@ export class FareTypeController {
// res_count.andWhere("munisipo.id = :munisipoId", { munisipoId: filterObj.munisipo_id });
// }
const res_list = repo.createQueryBuilder("FareType");
const res_list = repo.createQueryBuilder("FareType").orderBy("FareType.name", "ASC");
// Handle foreign key filter with relation
// if (filterObj.munisipo_id) {

View File

@ -83,7 +83,7 @@ export class ItemMasterController {
"unit.large_unit",
"unit.small_unit",
"item_master.pack_size",
]);
]).orderBy("item_master.item_name", "ASC");
const total_count_data = await query.getCount();
const list_data = await query.getMany();

View File

@ -79,7 +79,7 @@ export class ItemOriginController {
query.select([
"item_origin.id",
"item_origin.origin_name",
]);
]).orderBy("item_origin.origin_name", "ASC");
const total_count_data = await query.getCount();
const list_data = await query.getMany();

View File

@ -79,7 +79,7 @@ export class SupplierController {
query.select([
"supplier.id",
"supplier.supplier_name",
]);
]).orderBy("supplier.supplier_name", "ASC");
const total_count_data = await query.getCount();
const list_data = await query.getMany();

View File

@ -77,7 +77,7 @@ export class RefferalHospitalController {
var query = await RefferalHospitalModel.list();
const res_count = query;
const res_list = query.orderBy("refferal_hospital.created_at", "DESC");
const res_list = query.orderBy("refferal_hospital.refferal_hospital_name", "ASC");
const current_page = 1;
const total_count_data = await res_count.getCount();

View File

@ -99,7 +99,7 @@ export class RoomController {
query.select([
"Room.id",
"Room.room",
]);
]).orderBy("Room.room", "ASC");
const total_count_data = await query.getCount();
const list_data = await query.getMany();