Renamed the sn column to id in the accounting application.

This commit is contained in:
2020-08-04 01:59:51 +08:00
parent 733335c715
commit 44e22d711f
2 changed files with 7 additions and 8 deletions

View File

@ -273,7 +273,7 @@ def get_ledger_accounts():
FROM accounting_accounts AS s
INNER JOIN (SELECT s.code
FROM accounting_accounts AS s
INNER JOIN accounting_records AS r ON r.account_sn = s.sn
INNER JOIN accounting_records AS r ON r.account_id = s.id
GROUP BY s.code) AS u
ON u.code LIKE s.code || '%'
GROUP BY s.code)