fix(relasi) penambahan relasi tenant get
parent
766909798f
commit
84bf55011d
|
@ -23,7 +23,11 @@ export class DetailItemManager extends BaseDetailManager<ItemEntity> {
|
||||||
joinRelations: [],
|
joinRelations: [],
|
||||||
|
|
||||||
// relation join and select (relasi yang ingin ditampilkan),
|
// relation join and select (relasi yang ingin ditampilkan),
|
||||||
selectRelations: ['item_category', 'bundling_items'],
|
selectRelations: [
|
||||||
|
'item_category',
|
||||||
|
'bundling_items',
|
||||||
|
'tenant',
|
||||||
|
],
|
||||||
|
|
||||||
// relation yang hanya ingin dihitung (akan return number)
|
// relation yang hanya ingin dihitung (akan return number)
|
||||||
countRelations: [],
|
countRelations: [],
|
||||||
|
@ -53,6 +57,9 @@ export class DetailItemManager extends BaseDetailManager<ItemEntity> {
|
||||||
'bundling_items.name',
|
'bundling_items.name',
|
||||||
'bundling_items.hpp',
|
'bundling_items.hpp',
|
||||||
'bundling_items.base_price',
|
'bundling_items.base_price',
|
||||||
|
|
||||||
|
'tenant.id',
|
||||||
|
'tenant.name'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,11 @@ export class IndexItemManager extends BaseIndexManager<ItemEntity> {
|
||||||
joinRelations: [],
|
joinRelations: [],
|
||||||
|
|
||||||
// relation join and select (relasi yang ingin ditampilkan),
|
// relation join and select (relasi yang ingin ditampilkan),
|
||||||
selectRelations: ['item_category', 'bundling_items'],
|
selectRelations: [
|
||||||
|
'item_category',
|
||||||
|
'bundling_items',
|
||||||
|
'tenant',
|
||||||
|
],
|
||||||
|
|
||||||
// relation yang hanya ingin dihitung (akan return number)
|
// relation yang hanya ingin dihitung (akan return number)
|
||||||
countRelations: [],
|
countRelations: [],
|
||||||
|
@ -51,6 +55,9 @@ export class IndexItemManager extends BaseIndexManager<ItemEntity> {
|
||||||
|
|
||||||
'bundling_items.id',
|
'bundling_items.id',
|
||||||
'bundling_items.name',
|
'bundling_items.name',
|
||||||
|
|
||||||
|
'tenant.id',
|
||||||
|
'tenant.name'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue