from dataclasses import dataclass

@dataclass
class BOMItem:
    item_code: str
    qty: float
    uom: str
    item_name: str = None

@dataclass
class PackageCreationData:
    package_name: str
    items: list[BOMItem]
    item_group: str
    code_prefix: str
    rate: float = 0.0
    company: str = None
    description: str = None