fix(relasi) penambahan relasi tenant get

pull/3/head
Aswin Ashar Abdullah 2024-06-20 15:22:56 +07:00
parent 766909798f
commit 84bf55011d
2 changed files with 43 additions and 29 deletions

View File

@ -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'
]; ];
} }

View File

@ -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'
]; ];
} }