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

pull/2/head devel_10.1.1
ashar 2024-06-12 10:48:01 +07:00
parent f9e9818af9
commit d98f16b1bf
1 changed files with 3 additions and 2 deletions

View File

@ -68,8 +68,9 @@ export class ItemDto extends BaseStatusDto implements ItemEntity {
@IsNumber()
@ValidateIf(
(body) =>
body.item_type.toLowerCase() != ItemType.FREE_GIFT ||
body.item_type != ItemType.BUNDLING,
![ItemType.FREE_GIFT, ItemType.BUNDLING].includes(
body.item_type.toLowerCase(),
),
)
sales_margin: number;