- Expert-entered amounts on factor validation

- Cap raised to 53,000,000
- Cap error copy
- Repriced all-factor (and any repriced completion)
- Docs added to expert-claim.v2.controller and PATCH 2/expert-claim-validate-factors/:id
This commit is contained in:
2026-05-12 13:32:13 +03:30
parent 07c4e5126a
commit 0d0cec4b20
3 changed files with 141 additions and 99 deletions

View File

@@ -49,18 +49,24 @@ class FactorDecisionV2Dto {
@ApiPropertyOptional({
description:
"Expert-adjusted values (Persian/ASCII digits ok). For REJECTED factors, provide at least totalPayment (or price and salary).",
"Part price (Persian/ASCII digits). For each factor line, send totalPayment **or** both price and salary. Required for **APPROVED** (accepted amount read from factor / expert) and **REJECTED** (expert’s replacement pricing).",
})
@IsOptional()
@IsString()
price?: string;
@ApiPropertyOptional()
@ApiPropertyOptional({
description:
"Salary portion when not using a single totalPayment (must be sent together with price for APPROVED/REJECTED factor lines).",
})
@IsOptional()
@IsString()
salary?: string;
@ApiPropertyOptional()
@ApiPropertyOptional({
description:
"Line total payment; preferred when the expert enters one number. Required together with APPROVED/REJECTED unless both price and salary are sent.",
})
@IsOptional()
@IsString()
totalPayment?: string;