Overview
TheReportData model represents the complete data structure for a label printing error report. This model is used to capture all relevant information about a product label that failed to print correctly, including product details, order information, and location data.
Usage
This model is used in:- SaveLabelData endpoint (
POST /Home/SaveLabelData) - Accepts ReportData to log incidents - SQL Database - Stored in the
LabelDatatable for historical tracking and reporting
Class Definition
Properties
The unique serial number of the product. This is the primary identifier for tracking individual units.
The job identifier associated with the manufacturing or assembly process.
The item code or SKU identifying the product type.
A human-readable description of the product or item.
The order number associated with this product. Stored as decimal in the database.
The specific line number within the order.
License Plate Number - A unique identifier for the shipping container or pallet.
The tag or label number that was being printed when the error occurred.
The shipping code or destination identifier.
Internal Reference Number - An internal tracking identifier.
Subinventory location code where the product is located.
The date and time when the error occurred. Nullable - defaults to current timestamp if not provided.
The full shipping or destination address. Stored as
FullAddress in the database.JSON Example
Database Mapping
When saved to the SQL database, the model fields map to theLabelData table:
| Model Property | Database Column | Notes |
|---|---|---|
| SerialNumber | SerialNumber | |
| Job | Job | |
| Item | Item | |
| Description | Description | |
| OrderNumber | OrderNumber | Converted to decimal |
| OrderLine | OrderLine | |
| LPN | LPN | |
| TagNumber | TagNumber | |
| ShipCode | ShipCode | |
| IRNO | IRNO | |
| Subinv | Subinv | |
| Address | FullAddress | Different column name |
| Date | CreatedDate | Defaults to DateTime.Now |
Related Endpoints
- SaveLabelData - Save label error data using this model