fix: improve component inventory insufficient error handling
All checks were successful
NTFY Notification / notify (push) Successful in 4s
All checks were successful
NTFY Notification / notify (push) Successful in 4s
- Change component inventory insufficient from Error to Warning type in error report - Propagate productionOrderNo to M08_ComponentProcessor functions for proper error tracking - Update CheckComponentInventory to record warnings instead of errors for insufficient inventory - Pass productionOrderNo through ProcessComponentRecord call chain Changes: - M08_ComponentProcessor: Add productionOrderNo parameter to ProcessComponentRecord and CheckComponentInventory - M08_ComponentProcessor: Change insufficient inventory Record to RecordWarning - M08_ComponentProcessor: Use productionOrderNo in all error/warning recordings - M09_BOMExtractor: Pass productionOrderNo to ProcessComponentRecord call Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -466,7 +466,7 @@ Private Function MatchAllMaterialTypesWithValidation( _
|
||||
|
||||
If bomMatchResult("success") Then
|
||||
Set componentMaterials = M08_ComponentProcessor.ProcessComponentRecord( _
|
||||
ws, params, logger, bomMatchResult("rowNums")(1), orderQty)
|
||||
ws, params, logger, bomMatchResult("rowNums")(1), orderQty, productionOrderNo)
|
||||
|
||||
Debug.Print " -> 返回物料数: " & componentMaterials.count
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user