Compare commits
No commits in common. "b3f0752ca0bfe97aefde4348d35bb43dd3e0acd7" and "6096771597c73ac8e3d3ec3d61f8413bb3a0d41d" have entirely different histories.
b3f0752ca0
...
6096771597
|
@ -51,6 +51,7 @@ export const PrivilegeAdminConstant = [
|
||||||
menu_label: 'Rekonsiliasi',
|
menu_label: 'Rekonsiliasi',
|
||||||
actions: [
|
actions: [
|
||||||
PrivilegeAction.VIEW,
|
PrivilegeAction.VIEW,
|
||||||
|
PrivilegeAction.CREATE,
|
||||||
PrivilegeAction.CONFIRM,
|
PrivilegeAction.CONFIRM,
|
||||||
PrivilegeAction.DELETE,
|
PrivilegeAction.DELETE,
|
||||||
PrivilegeAction.CANCEL,
|
PrivilegeAction.CANCEL,
|
||||||
|
@ -159,7 +160,7 @@ export const PrivilegePOSConstant = [
|
||||||
{
|
{
|
||||||
menu: 'BOOKING',
|
menu: 'BOOKING',
|
||||||
menu_label: 'Pemesanan',
|
menu_label: 'Pemesanan',
|
||||||
actions: [PrivilegeAction.VIEW],
|
actions: [PrivilegeAction.VIEW, PrivilegeAction.CREATE],
|
||||||
index: 16,
|
index: 16,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,11 +27,7 @@ export class UpdateItemCategoryManager extends BaseUpdateManager<ItemCategoryEnt
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [
|
return [];
|
||||||
{
|
|
||||||
relation: 'items',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get uniqueColumns(): columnUniques[] {
|
get uniqueColumns(): columnUniques[] {
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import { BaseFilterEntity } from 'src/core/modules/domain/entities/base-filter.entity';
|
import { BaseFilterEntity } from 'src/core/modules/domain/entities/base-filter.entity';
|
||||||
|
|
||||||
export interface FilterBannerEntity extends BaseFilterEntity {
|
export interface FilterBannerEntity extends BaseFilterEntity {}
|
||||||
titles: string[];
|
|
||||||
}
|
|
||||||
|
|
|
@ -52,8 +52,8 @@ export class IndexBannerManager extends BaseIndexManager<BannerEntity> {
|
||||||
get specificFilter(): Param[] {
|
get specificFilter(): Param[] {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
cols: `${this.tableName}.title`,
|
cols: `${this.tableName}.name`,
|
||||||
data: this.filterParam.titles,
|
data: this.filterParam.names,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,6 @@
|
||||||
import { BaseFilterDto } from 'src/core/modules/infrastructure/dto/base-filter.dto';
|
import { BaseFilterDto } from 'src/core/modules/infrastructure/dto/base-filter.dto';
|
||||||
import { FilterBannerEntity } from '../../domain/entities/filter-banner.entity';
|
import { FilterBannerEntity } from '../../domain/entities/filter-banner.entity';
|
||||||
import { Transform } from 'class-transformer';
|
|
||||||
import { ApiProperty } from '@nestjs/swagger';
|
|
||||||
|
|
||||||
export class FilterBannerDto
|
export class FilterBannerDto
|
||||||
extends BaseFilterDto
|
extends BaseFilterDto
|
||||||
implements FilterBannerEntity
|
implements FilterBannerEntity {}
|
||||||
{
|
|
||||||
@ApiProperty({ type: ['string'], required: false })
|
|
||||||
@Transform((body) => {
|
|
||||||
return Array.isArray(body.value) ? body.value : [body.value];
|
|
||||||
})
|
|
||||||
titles: string[];
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue