Compare commits

...

2 Commits

Author SHA1 Message Date
shancheas fa286820fc fix: add breakdown bundling and profit to response
continuous-integration/drone/tag Build is passing Details
2024-08-15 17:12:12 +07:00
shancheas e966de6158 feat: add bundling breakdown type 2024-08-15 16:04:15 +07:00
4 changed files with 7 additions and 1 deletions

View File

@ -3,4 +3,5 @@ export enum ItemType {
WAHANA = 'wahana',
BUNDLING = 'bundling',
FREE_GIFT = 'free gift',
OTHER = 'other',
}

View File

@ -56,6 +56,9 @@ export class ItemModel
@Column('boolean', { name: 'show_to_booking', default: false })
show_to_booking: boolean;
@Column('boolean', { name: 'breakdown_bundling', default: false })
breakdown_bundling: boolean;
@Column('enum', {
name: 'limit_type',
enum: LimitType,

View File

@ -47,7 +47,7 @@ export class DetailItemManager extends BaseDetailManager<ItemEntity> {
`${this.tableName}.base_price`,
`${this.tableName}.use_queue`,
`${this.tableName}.show_to_booking`,
`${this.tableName}.show_to_booking`,
`${this.tableName}.breakdown_bundling`,
`item_category.id`,
`item_category.name`,

View File

@ -45,6 +45,8 @@ export class IndexItemManager extends BaseIndexManager<ItemEntity> {
`${this.tableName}.limit_type`,
`${this.tableName}.limit_value`,
`${this.tableName}.base_price`,
`${this.tableName}.share_profit`,
`${this.tableName}.breakdown_bundling`,
`item_category.id`,
`item_category.name`,