更新
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user