fix(est): preserve fixed review amounts
This commit is contained in:
@@ -61,7 +61,8 @@ const EstReview = (() => {
|
||||
errors.push(`${row.Name || key}: 심사할 수 없는 항목 ${field}`);
|
||||
else row[field] = edit[field];
|
||||
}
|
||||
if (fixed(row)) row.TC = EstMath.sum(row);
|
||||
if (fixed(row) && EstMath.components.some((field) => Object.hasOwn(edit, field)))
|
||||
row.TC = EstMath.sum(row);
|
||||
});
|
||||
for (const key of Object.keys(edits))
|
||||
if (!seen.has(key)) errors.push(`심사 대상 내역 없음: ${key}`);
|
||||
|
||||
Reference in New Issue
Block a user