Compare commits
2 Commits
a17395b43e
...
c9166fda4d
Author | SHA1 | Date | |
---|---|---|---|
c9166fda4d | |||
3a0f0873e2 |
@ -72,8 +72,8 @@ def get_selectable_original_line_items(
|
||||
line_items: list[JournalEntryLineItem] = JournalEntryLineItem.query\
|
||||
.filter(JournalEntryLineItem.id.in_({x for x in net_balances}))\
|
||||
.join(JournalEntry)\
|
||||
.order_by(JournalEntry.date, JournalEntryLineItem.is_debit,
|
||||
JournalEntryLineItem.no)\
|
||||
.order_by(JournalEntry.date, JournalEntry.no,
|
||||
JournalEntryLineItem.is_debit, JournalEntryLineItem.no)\
|
||||
.options(selectinload(JournalEntryLineItem.currency),
|
||||
selectinload(JournalEntryLineItem.account),
|
||||
selectinload(JournalEntryLineItem.journal_entry)).all()
|
||||
|
@ -30,9 +30,13 @@ from flask_wtf import CSRFProtect
|
||||
from sqlalchemy import Column
|
||||
|
||||
bp: Blueprint = Blueprint("home", __name__)
|
||||
"""The global blueprint."""
|
||||
babel_js: BabelJS = BabelJS()
|
||||
"""The Babel JavaScript instance."""
|
||||
csrf: CSRFProtect = CSRFProtect()
|
||||
"""The CSRF protector."""
|
||||
db: SQLAlchemy = SQLAlchemy()
|
||||
"""The database instance."""
|
||||
|
||||
|
||||
def create_app(is_testing: bool = False) -> Flask:
|
||||
|
Loading…
x
Reference in New Issue
Block a user