Files
njts-accounting-core/frontend/opening_balance.html
2026-02-21 10:51:25 +09:00

77 lines
1.7 KiB
HTML

<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<script src="js/auth.js"></script>
<title>期首残高入力</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<h1>期首残高入力</h1>
<label>
会計年度:
<input type="number" id="fiscalYear" value="2025" />
</label>
<button onclick="loadOpeningBalances()">読込</button>
<br /><br />
<table id="balanceTable">
<thead>
<tr>
<th>科目コード</th>
<th>科目名</th>
<th>借方期首</th>
<th>贷方期首</th>
</tr>
</thead>
<tbody></tbody>
</table>
<br />
<div>
<strong>借方合計:</strong><span id="totalDebit">0</span><br />
<strong>贷方合計:</strong><span id="totalCredit">0</span><br />
<strong>差額:</strong><span id="diff">0</span>
</div>
<br />
<button
onclick="saveOpeningBalances()"
style="
margin: 0 10px 0 0;
padding: 8px 16px;
background: #28a745;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
"
>
保存
</button>
<button
onclick="location.href = 'index.html'"
style="
margin: 0 0 20px 0;
padding: 8px 16px;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
"
>
← メインメニューに戻る
</button>
<script src="js/api.js"></script>
<script src="js/opening_balance.js"></script>
</body>
</html>