forked from Yara724/api
fix: harden claim review and inquiry workflows
Preserve damage history and current vehicle price, restore depreciation mapping, normalize inquiry/report output, and support resumable expert review with paginated case retrieval.
This commit is contained in:
@@ -128,21 +128,21 @@ describe("getExpertReplyPricingValidationError", () => {
|
||||
|
||||
it.each([
|
||||
["price", "99,999", "parts[0].price"],
|
||||
["salary", "10,000,000,001", "parts[0].salary"],
|
||||
["salary", "100,000,000,001", "parts[0].salary"],
|
||||
["totalPayment", "99,999", "parts[0].totalPayment"],
|
||||
["daghi.price", "10,000,000,001", "parts[0].daghi.price"],
|
||||
["daghi.price", "100,000,000,001", "parts[0].daghi.price"],
|
||||
])(
|
||||
"enforces the amount range for %s",
|
||||
(field, invalidValue, expectedField) => {
|
||||
const part = {
|
||||
partId: 201,
|
||||
typeOfDamage: TypeOfDamage.Change,
|
||||
price: "100000",
|
||||
salary: "100000",
|
||||
totalPayment: "100000",
|
||||
price: "1000000",
|
||||
salary: "1000000",
|
||||
totalPayment: "1000000",
|
||||
daghi: {
|
||||
option: DaghiOption.RECYCLED_PARTS_VALUE,
|
||||
price: "100000",
|
||||
price: "1000000",
|
||||
},
|
||||
};
|
||||
if (field === "daghi.price") part.daghi.price = invalidValue;
|
||||
|
||||
Reference in New Issue
Block a user