feat(est-test): 수량산출 누계 계산과 넣기
- 원본 누계 표지(F·a)를 읽어 계산마다 소계로 다시 구함 - 산출 줄 커서 자리에 누계 넣기, 표지 반올림 방식·자리 반영 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -120,6 +120,15 @@ const EstQuantitySheets = (() => {
|
||||
if (index < 0 || index + step < 0 || index + step >= sheets.length)
|
||||
throw Error("더 옮길 수 없습니다.");
|
||||
EstApp.change((project) => move(project, code, step), false);
|
||||
} else if (name === "quantity-total") {
|
||||
const sheet = state.project.quantitySheets?.find((next) => next.Code === code),
|
||||
index = Number(node?.dataset.index),
|
||||
editor = lineEditor(index);
|
||||
if (!sheet) throw Error("수량산출서를 고르세요.");
|
||||
EstApp.change(
|
||||
() => EstQuantityTotal.insert(sheet, index, editor.selectionStart ?? 0, editor.value),
|
||||
false,
|
||||
);
|
||||
} else if (name === "quantity-mark" || name === "quantity-free") {
|
||||
const sheet = state.project.quantitySheets?.find((next) => next.Code === code),
|
||||
index = Number(node?.dataset.index),
|
||||
|
||||
Reference in New Issue
Block a user