fix: add breakdown bundling response to item and item rate
continuous-integration/drone/tag Build is passing Details

fix/bug-firman 20.1.42-alpha.1
shancheas 2024-08-16 15:11:15 +07:00
parent a2a9c16619
commit ee232447b6
3 changed files with 15 additions and 2 deletions

View File

@ -91,6 +91,8 @@ export class IndexItemRateManager extends BaseIndexManager<ItemEntity> {
`${this.tableName}.created_at`,
`${this.tableName}.name`,
`${this.tableName}.base_price`,
`${this.tableName}.breakdown_bundling`,
`${this.tableName}.share_profit`,
'tenant.id',
'tenant.name',

View File

@ -38,7 +38,12 @@ export class IndexItemRatesManager extends BaseIndexManager<ItemRateEntity> {
joinRelations: [],
// relation join and select (relasi yang ingin ditampilkan),
selectRelations: ['season_period', 'season_period.season_type', 'item'],
selectRelations: [
'season_period',
'season_period.season_type',
'item',
'item.bundling_items',
],
// relation yang hanya ingin dihitung (akan return number)
countRelations: [],
@ -54,7 +59,11 @@ export class IndexItemRatesManager extends BaseIndexManager<ItemRateEntity> {
'item.id',
'item.total_price',
'item.base_price',
'item.breakdown_bundling',
'bundling_items.base_price',
'bundling_items.hpp',
'bundling_items.id',
'bundling_items.name',
`season_period.id`,
`season_period.priority`,
`season_period.created_at`,

View File

@ -49,6 +49,8 @@ export class IndexSeasonPeriodeItemManager extends BaseIndexManager<ItemRateEnti
`item.limit_type`,
`item.limit_value`,
`item.base_price`,
`item.breakdown_bundling`,
`item.share_profit`,
`item_category.id`,
`item_category.name`,