This commit is contained in:
admin
2026-01-15 10:56:05 +09:00
parent c753e89f49
commit 6c5e8593fb
6 changed files with 314 additions and 169 deletions

View File

@@ -91,6 +91,11 @@ def fetch_trial_balance(date_from: str, date_to: str):
credit = D(row["credit"])
closing = opening + debit - credit
# 負債・資本は絶対値で表示(見やすくするため)
if acc["account_type"] in ("liability", "equity"):
opening = abs(opening)
closing = abs(closing)
account_data[code] = {
"account_id": aid,