Renamed the sn column to id in the accounting application.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user