create invoice
This commit is contained in:
@@ -7,9 +7,9 @@ import { ApiProperty } from '@nestjs/swagger';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
export class InvoiceItemDto {
|
||||
@IsInt()
|
||||
@IsNumber()
|
||||
@ApiProperty()
|
||||
orderItemId: bigint;
|
||||
orderItemId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
@@ -22,9 +22,8 @@ export class CreateInvoiceDto {
|
||||
@ApiProperty({
|
||||
isArray: true, type: [InvoiceItemDto], example: [
|
||||
{
|
||||
productId: 1,
|
||||
quantity: 100,
|
||||
attributesValues: []
|
||||
orderItemId: 1,
|
||||
unitPrice: 100,
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user