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:
@@ -35,7 +35,7 @@ export class PaymentReceivedEntryDto {
|
||||
invoiceId: number;
|
||||
|
||||
@ToNumber()
|
||||
@IsInt()
|
||||
@IsNumber()
|
||||
@IsNotEmpty()
|
||||
paymentAmount: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user