mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
refactor(nestjs): wip dtos validation schema
This commit is contained in:
@@ -20,19 +20,22 @@ export class PaymentReceivedEntryDto {
|
||||
id?: number;
|
||||
|
||||
@ToNumber()
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@IsOptional()
|
||||
index?: number;
|
||||
|
||||
@IsOptional()
|
||||
@ToNumber()
|
||||
@IsInt()
|
||||
paymentReceiveId?: number;
|
||||
|
||||
@ToNumber()
|
||||
@IsInt()
|
||||
@IsNotEmpty()
|
||||
invoiceId: number;
|
||||
|
||||
@IsNumber()
|
||||
@ToNumber()
|
||||
@IsInt()
|
||||
@IsNotEmpty()
|
||||
paymentAmount: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user