diff --git a/tkpurchase/web/static/js/tkpurchase-accounts.js b/tkpurchase/web/static/js/tkpurchase-accounts.js index db96679..48cdf0b 100644 --- a/tkpurchase/web/static/js/tkpurchase-accounts.js +++ b/tkpurchase/web/static/js/tkpurchase-accounts.js @@ -23,21 +23,21 @@ function renderCompanyList(list) { container.innerHTML = list.map(c => { const active = c.id === selectedCompanyId; return ``; }).join(''); } function filterCompanyList() { const q = document.getElementById('companyFilter').value.trim().toLowerCase(); - const filtered = q ? allCompanies.filter(c => (c.name || '').toLowerCase().includes(q)) : allCompanies; + const filtered = q ? allCompanies.filter(c => (c.company_name || '').toLowerCase().includes(q)) : allCompanies; renderCompanyList(filtered); } async function selectCompanyForAccounts(id) { selectedCompanyId = id; const company = allCompanies.find(c => c.id === id); - document.getElementById('selectedCompanyName').textContent = company ? company.name + ' - 계정 목록' : '계정 목록'; + document.getElementById('selectedCompanyName').textContent = company ? company.company_name + ' - 계정 목록' : '계정 목록'; document.getElementById('addAccountBtn').classList.remove('hidden'); // Re-render company list to highlight selection diff --git a/tkpurchase/web/static/js/tkpurchase-schedule.js b/tkpurchase/web/static/js/tkpurchase-schedule.js index 7a073cc..f14574d 100644 --- a/tkpurchase/web/static/js/tkpurchase-schedule.js +++ b/tkpurchase/web/static/js/tkpurchase-schedule.js @@ -109,7 +109,7 @@ function setupCompanyAutocomplete(inputId, dropdownId, hiddenId) { dropdown.innerHTML = '