feat: add minimal frontend (accounts, trial balance)

This commit is contained in:
admin
2025-12-13 23:27:38 +09:00
commit 446f17f21a
11 changed files with 149 additions and 0 deletions

18
frontend/js/accounts.js Normal file
View File

@@ -0,0 +1,18 @@
(async () => {
try {
const data = await apiGet("/accounts/");
const tbody = document.getElementById("accounts-body");
data.forEach((a) => {
const tr = document.createElement("tr");
tr.innerHTML = `
<td>${a.account_code}</td>
<td>${a.account_name}</td>
<td>${a.account_type}</td>
`;
tbody.appendChild(tr);
});
} catch (e) {
alert(e.message);
}
})();