Atualizações em data-consult e products
This commit is contained in:
@@ -14,13 +14,22 @@ export class ProductDetailQueryDto {
|
||||
numregiao: number;
|
||||
|
||||
@ApiProperty({
|
||||
description: 'Array de códigos de produtos',
|
||||
description: 'Array de códigos de produtos (opcional se codauxiliar for informado)',
|
||||
example: [1, 2, 3],
|
||||
type: [Number],
|
||||
required: false,
|
||||
})
|
||||
@IsArray()
|
||||
@IsNotEmpty()
|
||||
codprod: number[];
|
||||
codprod?: number[];
|
||||
|
||||
@ApiProperty({
|
||||
description: 'Array de códigos auxiliares (opcional se codprod for informado)',
|
||||
example: ['7891234567890', '7891234567891'],
|
||||
type: [String],
|
||||
required: false,
|
||||
})
|
||||
@IsArray()
|
||||
codauxiliar?: string[];
|
||||
|
||||
@ApiProperty({
|
||||
description: 'Código da filial',
|
||||
|
||||
@@ -14,12 +14,20 @@ export class RotinaA4QueryDto {
|
||||
numregiao: number;
|
||||
|
||||
@ApiProperty({
|
||||
description: 'Código do produto',
|
||||
description: 'Código do produto (opcional se codauxiliar for informado)',
|
||||
example: 12345,
|
||||
required: false,
|
||||
})
|
||||
@IsNumber()
|
||||
@IsNotEmpty()
|
||||
codprod: number;
|
||||
codprod?: number;
|
||||
|
||||
@ApiProperty({
|
||||
description: 'Código auxiliar do produto (opcional se codprod for informado)',
|
||||
example: '7891234567890',
|
||||
required: false,
|
||||
})
|
||||
@IsString()
|
||||
codauxiliar?: string;
|
||||
|
||||
@ApiProperty({
|
||||
description: 'Código da filial',
|
||||
|
||||
@@ -16,6 +16,12 @@ export class RotinaA4ResponseDto {
|
||||
})
|
||||
CODPROD: number;
|
||||
|
||||
@ApiProperty({
|
||||
description: 'Código auxiliar do produto',
|
||||
example: '7891234567890',
|
||||
})
|
||||
CODAUXILIAR: string;
|
||||
|
||||
@ApiProperty({
|
||||
description: 'Preço normal do produto formatado como moeda brasileira (com decimais)',
|
||||
example: '1.109,90',
|
||||
|
||||
Reference in New Issue
Block a user