feat: setup Filter branch and apply software management fixes

This commit is contained in:
2026-04-27 09:11:22 +09:00
parent ab0d25b827
commit 171bcc772b
4 changed files with 28 additions and 68 deletions

View File

@@ -88,7 +88,8 @@ export function renderSwList(container: HTMLElement) {
}
filtered.forEach((asset, idx) => {
const assigned = state.masterData.swUsers.filter(u => u.sw_id === asset.id).length;
const mapping = state.masterData.swUsers.find(u => u.sw_id === asset.id);
const assigned = mapping ? (mapping.userData || []).length : 0;
const qty = typeof asset. === 'number' ? asset.수량 : parseInt(asset.||'0', 10);
const avail = qty - assigned;