Set alias to the balance expression of amount query for budget line
Since 530295147233 AmountMixin.get_amount uses sqlite_apply_types which requires columns of select query to have an alias to apply the type for SQLite. Closes #13491
This commit is contained in:
1 parent
8f96e4af72
commit
aac6fbd1b8
1 file changed
+1
-1
@@ -194,7 +194,7 @@ class BudgetLine(BudgetLineMixin, ModelSQL, ModelView):
|
||||
line,
|
||||
condition=line.account == children.account)
|
||||
.select(
|
||||
table.id, balance,
|
||||
table.id, balance.as_('amount'),
|
||||
where=red_sql & query_where,
|
||||
group_by=table.id))
|
||||
|
||||
|
||||
Reference in new issue
Block a user