Skip to content

Daily Work Order Status

  • Dataset Name: DailyWorkOrderStatus
  • Description: This table stores date-wise production status of apparel work orders at production-line level, broken down by customer, style, color, size, factory, branch, and sewing line.
  • Owner/Maintainer: Manufacturing Systems Team / Production Data Engineering
  • Database: SooperWizer
  • Server: T3600-SERVERPC\DEV2019
  • Schema: Reports
Column NameData TypeConstraintsDescription
DailyWorkOrderStatusIDINTPrimary Key, NOT NULLA unique serial number for each record in the table.
WorkOrderCodeVARCHAR(100)NOT NULLThe factory’s own internal order number to track this production job.
CustomerCodeNVARCHAR(128)NULLA short code identifying the buyer
CustomerNameNVARCHAR(128)NULLThe full name of the buyer
BuyMonthVARCHAR(128)NOT NULLThe month the buyer wants to receive this order
StyleNameVARCHAR(64)NOT NULLThe name of the garment style
PurchaseOrderCodeVARCHAR(100)NOT NULLThe buyer’s official order number
ColorCodeNVARCHAR(64)NOT NULLA short code for the garment color
ColorNameNVARCHAR(64)NOT NULLThe full color name
SizeNameNVARCHAR(64)NOT NULLThe size of the garment
FactoryCodeNVARCHAR(64)NOT NULLCode of factory manufacturing this order
FactoryNameNVARCHAR(64)NOT NULLName of factory manufacturing this order
BranchCodeNVARCHAR(64)NOT NULLCode of branch of the factory group overseeing production.
BranchNameNVARCHAR(64)NOT NULLName of branch of the factory group overseeing production.
LineIDINTNOT NULL, FKId of sewing line inside the factory working on this order
LineCodeNVARCHAR(64)NOT NULLCode of sewing line inside the factory working on this order
LineNameNVARCHAR(64)NOT NULLName of sewing line inside the factory working on this order
OrderQuantityINTNOT NULLThe total pieces the buyer ordered for this specific style, color, and size
SyncedQuantityINTNOT NULLThe quantity that has been received and confirmed from the buyer’s system
CardInitializedQuantityINTNOT NULLThe number of pieces for which production tracking cards have been created
CuttingOutQuantityINTNOT NULLNo. of pieces that have been cut and sent from cutting department toward sewing floor
InductionQuantityINTNOT NULLPieces that have been scanned on the very first sewing machine on the line
EndLineQualityPassedQuantityINTNOT NULLPieces that passed the quality check at the end of the sewing line
EndLineQualityRejectedQuantityINTNOT NULLPieces that failed the quality check at the end of the sewing line
SewingLastOperationQuantityINTNOT NULLPieces that have completed the very last sewing operation on the line
SendDownQuantityINTNOT NULLNo. of pieces that have been officially sent down to the sewing department
FinishingFirstOperationQuantityINTNOT NULLPieces that have entered the finishing department and started first finishing step
FinishingQualityPassQuantityINTNOT NULLPieces that passed the final finishing quality inspection
FinishingQualityRejectionQuantityINTNOT NULLPieces that failed the finishing quality inspection
FinishingLastOperationQuantityINTNOT NULLPieces that have completed all finishing operations
StatusDateDATENOT NULLThe production date for which the quantities are reported
CreatedAtDATETIMENOT NULLTimestamp when the record was created in the system
UpdatedAtDATETIMENOT NULLTimestamp when the record was last updated

  • Primary Key: PK_DailyWorkOrderStatus (clustered, identity)
  • Performance Indexes:
    • PK_DailyWorkOrderStatus (clustered, unique)
    • UQ_DailyWorkOrderStatus (non-clustered, unique)
  • Default Constraints:
    • All event dates null if piece status doesn’t match.
  • Unique Identifiers:
    • PK_DailyWorkOrderStatus (clustered, unique)
    • UQ_DailyWorkOrderStatus (non-clustered, unique)
  • Grouping Logic: Aggregated by WorkOrderCode, CustomerCode, CustomerName, BuyMonth, StyleName, PurchaseOrderCode, ColorCode, ColorName, SizeName, FactoryCode, FactoryName, BranchCode, BranchName, LineID, LineCode, LineName, StatusDate;

Data Deletion Strategy (Standard, not done yet)

Section titled “Data Deletion Strategy (Standard, not done yet)”
  • Retention Policy: 3 years for reporting, 7 years for compliance
  • Deletion Triggers: Automated quarterly archival process
  • Archival Process: Move to DailyWorkOrderStatus_Archive after 3 years
  • Compliance Requirements: Manufacturing and supply chain audit requirements
  • Column-wise Insertion Rules:
    • DailyWorkOrderStatusID: Auto-generated (IDENTITY)
    • Date Columns: Default to NULL, updated via aggregation
    • Descriptive fields: Populated from master data joins
  • Insertion Procedures: uspSyncDailyWorkOrderStatus
  • Job: Job_To_Sync_Daily_WorkOrder_Status_Every_11_Minutes
    • Purpose: Aggregate and sync Daily work order status data
    • Data Sources: [Reports].[Piece], [Cutting].[Bundle], [Orders].[WorkOrderStyle], [Orders].[WorkOrder], [Orders].[Style], [Essentials].[Customer], [Orders].[PurchaseOrder], [Essentials].[Color], [Essentials].[Size], [Essentials].[Line], [Essentials].[Branch], [Essentials].[Factory]
    • Transformation: Aggregation and enrichment via joins
    • Error Handling: Transactional integrity, error logging
  • SyncedQty, CardInitializedQty, CuttingOutQty, InductionQty, EndLineQualityPassedQty, EndLineQualityRejectedQty, SewingLastOperationQty, SendDownQty, FinishingFirstOperationQty, FinishingQualityPassQty, FinishingQualityRejectionQty, FinishingLastOperationQty : Calculated on the base of event dates grouped by bundles.
  • Pass/Reject Rates: Calculated in downstream reports
  • Primary Source: [Reports].[Piece], [Cutting].[Bundle], [Orders].[WorkOrderStyle], [Orders].[WorkOrder], [Orders].[Style]
  • Master Data Sources:
    • [Essentials].[Customer], [Orders].[PurchaseOrder], [Essentials].[Color], [Essentials].[Size], [Essentials].[Line], [Essentials].[Branch], [Essentials].[Factory]
  • Views Using This Dataset:
    • VW_WIP_InputDateWiseReport
    • VW_WIP_WorkOrderInPurOutPutQtyBalanceReport
    • VW_WIP_DailyWorkingInProgressInlineBalanceReport
    • Vw_Stitching_SewingInputReport
    • VW_WIP_LineWiseLineBalanceReport
  • Reports:
    • N/A