- Implemented the items tab form in Svelte for editing invoices, displaying item quantities and import values. - Created saveInvoice function to handle both creation and updating of invoices, including validation of required fields and building a unified payload for API requests. - Added support for compliance, financials, and logistics data in the invoice payload.
26 lines
698 B
Python
26 lines
698 B
Python
"""
|
|
Items module - Annex 76 Compliance
|
|
"""
|
|
|
|
# Import models in correct order to avoid circular dependencies
|
|
# LineItem must be imported before models that reference it
|
|
from .line_items.models import LineItem
|
|
from .line_financials.models import LineFinancial
|
|
from .line_quantities.models import LineQuantity
|
|
from .line_customs.models import LineCustom
|
|
from .line_descriptions.models import LineDescription
|
|
from .line_references.models import LineReference
|
|
from .models import Item, CTMReceipt, SubassemblyEntry
|
|
|
|
__all__ = [
|
|
"Item",
|
|
"LineItem",
|
|
"LineFinancial",
|
|
"LineQuantity",
|
|
"LineCustom",
|
|
"LineDescription",
|
|
"LineReference",
|
|
"CTMReceipt",
|
|
"SubassemblyEntry",
|
|
]
|