bugfix
This commit is contained in:
parent
b2e4b03b82
commit
202fe6b578
@ -19,16 +19,10 @@ async def all_my_accounts(request):
|
|||||||
b.id,
|
b.id,
|
||||||
a.name,
|
a.name,
|
||||||
b.balance_at,
|
b.balance_at,
|
||||||
case when c.balance is null then 0.00 else c.balance end as balance
|
b.balance
|
||||||
from
|
from
|
||||||
subject a,
|
subject a,
|
||||||
account b left join
|
account b
|
||||||
(
|
|
||||||
select a.*
|
|
||||||
from acc_balance a,
|
|
||||||
(select accountid, max(acc_date) max_date from acc_balance group by accountid) b
|
|
||||||
where a.accountid=b.accountid and a.acc_date=b.max_date
|
|
||||||
) c on c.accountid = b.id
|
|
||||||
where b.subjectid = a.id
|
where b.subjectid = a.id
|
||||||
and b.orgid = ${orgid}$
|
and b.orgid = ${orgid}$
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user