fix(item) perbaikan dto item bundling
continuous-integration/drone/tag Build is passing Details

pull/2/head devel_10.1
ashar 2024-06-12 10:31:49 +07:00
parent abe163e80a
commit f9e9818af9
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ export class ItemDto extends BaseStatusDto implements ItemEntity {
example: 50,
})
@IsNumber()
@ValidateIf((body) => body.item_type.toLowerCase() != ItemType.FREE_GIFT)
@ValidateIf(
(body) =>
body.item_type.toLowerCase() != ItemType.FREE_GIFT ||
body.item_type != ItemType.BUNDLING,
)
sales_margin: number;
@ApiProperty({