fix: add breakdown bundling response to item and item rate
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
parent
a2a9c16619
commit
ee232447b6
|
@ -91,6 +91,8 @@ export class IndexItemRateManager extends BaseIndexManager<ItemEntity> {
|
||||||
`${this.tableName}.created_at`,
|
`${this.tableName}.created_at`,
|
||||||
`${this.tableName}.name`,
|
`${this.tableName}.name`,
|
||||||
`${this.tableName}.base_price`,
|
`${this.tableName}.base_price`,
|
||||||
|
`${this.tableName}.breakdown_bundling`,
|
||||||
|
`${this.tableName}.share_profit`,
|
||||||
|
|
||||||
'tenant.id',
|
'tenant.id',
|
||||||
'tenant.name',
|
'tenant.name',
|
||||||
|
|
|
@ -38,7 +38,12 @@ export class IndexItemRatesManager extends BaseIndexManager<ItemRateEntity> {
|
||||||
joinRelations: [],
|
joinRelations: [],
|
||||||
|
|
||||||
// relation join and select (relasi yang ingin ditampilkan),
|
// 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)
|
// relation yang hanya ingin dihitung (akan return number)
|
||||||
countRelations: [],
|
countRelations: [],
|
||||||
|
@ -54,7 +59,11 @@ export class IndexItemRatesManager extends BaseIndexManager<ItemRateEntity> {
|
||||||
'item.id',
|
'item.id',
|
||||||
'item.total_price',
|
'item.total_price',
|
||||||
'item.base_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.id`,
|
||||||
`season_period.priority`,
|
`season_period.priority`,
|
||||||
`season_period.created_at`,
|
`season_period.created_at`,
|
||||||
|
|
|
@ -49,6 +49,8 @@ export class IndexSeasonPeriodeItemManager extends BaseIndexManager<ItemRateEnti
|
||||||
`item.limit_type`,
|
`item.limit_type`,
|
||||||
`item.limit_value`,
|
`item.limit_value`,
|
||||||
`item.base_price`,
|
`item.base_price`,
|
||||||
|
`item.breakdown_bundling`,
|
||||||
|
`item.share_profit`,
|
||||||
|
|
||||||
`item_category.id`,
|
`item_category.id`,
|
||||||
`item_category.name`,
|
`item_category.name`,
|
||||||
|
|
Loading…
Reference in New Issue