[docs]classHandheldBatch(FileBatchMixin,Base):""" Batch representing a file from a batch-oriented handheld device (e.g. Motorola). """__tablename__='batch_handheld'__batchrow_class__='HandheldBatchRow'batch_key='handheld'# TODO: this should probably be new defaultfilename_nullable=Truedevice_type=sa.Column(sa.String(length=50),nullable=True,doc=""" Key indicating the type of device where the batch originated. """)device_name=sa.Column(sa.String(length=50),nullable=True,doc=""" Name of the device where the batch originated. """)
[docs]classHandheldBatchRow(ProductBatchRowMixin,Base):""" Rows for handheld batches. """__tablename__='batch_handheld_row'__batch_class__=HandheldBatchSTATUS_OK=1STATUS_PRODUCT_NOT_FOUND=2STATUS={STATUS_OK:"ok",STATUS_PRODUCT_NOT_FOUND:"product not found",}cases=sa.Column(sa.Numeric(precision=10,scale=4),nullable=True,doc=""" Case quantity for the record. """)units=sa.Column(sa.Numeric(precision=10,scale=4),nullable=True,doc=""" Unit quantity for the record. """)