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