fix: improve component inventory insufficient error handling
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:
Misaka_Company
2026-02-26 10:27:10 +08:00
parent 7fea574531
commit c4d7b248c4
2 changed files with 11 additions and 9 deletions

View File

@@ -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