Moved the "accounting.journal_entry.utils.offset_alias" module to "accounting.utils.offset_alias".
This commit is contained in:
parent
71a20cba29
commit
5af6fd9619
@ -28,14 +28,13 @@ from wtforms.validators import DataRequired
|
|||||||
|
|
||||||
from accounting import db
|
from accounting import db
|
||||||
from accounting.forms import CurrencyExists
|
from accounting.forms import CurrencyExists
|
||||||
from accounting.journal_entry.utils.offset_alias import offset_alias
|
|
||||||
from accounting.locale import lazy_gettext
|
from accounting.locale import lazy_gettext
|
||||||
from accounting.models import JournalEntryLineItem
|
from accounting.models import JournalEntryLineItem
|
||||||
from accounting.utils.cast import be
|
from accounting.utils.cast import be
|
||||||
|
from accounting.utils.offset_alias import offset_alias
|
||||||
from accounting.utils.strip_text import strip_text
|
from accounting.utils.strip_text import strip_text
|
||||||
from .line_item import LineItemForm, CreditLineItemForm, DebitLineItemForm
|
from .line_item import LineItemForm, CreditLineItemForm, DebitLineItemForm
|
||||||
|
|
||||||
|
|
||||||
CURRENCY_REQUIRED: DataRequired = DataRequired(
|
CURRENCY_REQUIRED: DataRequired = DataRequired(
|
||||||
lazy_gettext("Please select the currency."))
|
lazy_gettext("Please select the currency."))
|
||||||
"""The validator to check if the currency code is empty."""
|
"""The validator to check if the currency code is empty."""
|
||||||
|
@ -25,7 +25,7 @@ from sqlalchemy.orm import selectinload
|
|||||||
from accounting import db
|
from accounting import db
|
||||||
from accounting.models import Account, JournalEntry, JournalEntryLineItem
|
from accounting.models import Account, JournalEntry, JournalEntryLineItem
|
||||||
from accounting.utils.cast import be
|
from accounting.utils.cast import be
|
||||||
from .offset_alias import offset_alias
|
from accounting.utils.offset_alias import offset_alias
|
||||||
|
|
||||||
|
|
||||||
def get_selectable_original_line_items(
|
def get_selectable_original_line_items(
|
||||||
|
@ -25,7 +25,6 @@ from flask import render_template, Response
|
|||||||
from sqlalchemy.orm import selectinload
|
from sqlalchemy.orm import selectinload
|
||||||
|
|
||||||
from accounting import db
|
from accounting import db
|
||||||
from accounting.journal_entry.utils.offset_alias import offset_alias
|
|
||||||
from accounting.locale import gettext
|
from accounting.locale import gettext
|
||||||
from accounting.models import Account, JournalEntry, \
|
from accounting.models import Account, JournalEntry, \
|
||||||
JournalEntryLineItem
|
JournalEntryLineItem
|
||||||
@ -38,6 +37,7 @@ from accounting.report.utils.report_type import ReportType
|
|||||||
from accounting.report.utils.unapplied import get_accounts_with_unapplied
|
from accounting.report.utils.unapplied import get_accounts_with_unapplied
|
||||||
from accounting.report.utils.urls import unapplied_url
|
from accounting.report.utils.urls import unapplied_url
|
||||||
from accounting.utils.cast import be
|
from accounting.utils.cast import be
|
||||||
|
from accounting.utils.offset_alias import offset_alias
|
||||||
from accounting.utils.pagination import Pagination
|
from accounting.utils.pagination import Pagination
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
"""
|
"""
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
|
|
||||||
from accounting.journal_entry.utils.offset_alias import offset_alias
|
|
||||||
from accounting.models import Account, JournalEntryLineItem
|
from accounting.models import Account, JournalEntryLineItem
|
||||||
from accounting.utils.cast import be
|
from accounting.utils.cast import be
|
||||||
|
from accounting.utils.offset_alias import offset_alias
|
||||||
|
|
||||||
|
|
||||||
def get_accounts_with_unapplied() -> list[Account]:
|
def get_accounts_with_unapplied() -> list[Account]:
|
||||||
|
Loading…
Reference in New Issue
Block a user