update option function
This commit is contained in:
@ -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) {
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user