update order as admin

This commit is contained in:
2026-06-28 12:58:05 +03:30
parent 937c829e48
commit 410a210404
5 changed files with 187 additions and 1 deletions
@@ -0,0 +1,16 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, Min } from 'class-validator';
import { Type } from 'class-transformer';
export class UpdateOrderItemQuantityDto {
@ApiProperty({
description: 'New quantity for the order item (supports decimals for variable products)',
example: 2,
minimum: 0.001,
})
@IsNotEmpty()
@Type(() => Number)
@IsNumber({ maxDecimalPlaces: 3 })
@Min(0.001)
quantity!: number;
}