Fixed the SQL in the get_ledger_accounts() utility in the accounting application.

This commit is contained in:
依瑪貓 2020-08-11 00:32:55 +08:00
parent b0e5720c8d
commit 4cd7b60f79

View File

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