1
0

fix(payment-received): allow decimal amounts in paymentAmount validation

Change @IsInt() to @IsNumber() for paymentAmount field in PaymentReceivedEntryDto
to allow recording payments with cents (e.g., $1,679.80).

Fixes #1016

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ahmed Bouhuolia
2026-03-06 06:31:55 +02:00
parent 7dd08d6141
commit e02e143157
@@ -35,7 +35,7 @@ export class PaymentReceivedEntryDto {
invoiceId: number;
@ToNumber()
@IsInt()
@IsNumber()
@IsNotEmpty()
paymentAmount: number;
}