Implement automatic component inventory verification that marks orders with insufficient stock as "Component Priority = No". Key features: - Reads orders from [产品订单] worksheet - Parses BOM to identify component category materials - Validates inventory against [现存量] worksheet - Allocates stock in order sequence - Handles missing components with warnings instead of errors - Provides detailed statistics on completion Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
16 lines
625 B
OpenEdge ABL
16 lines
625 B
OpenEdge ABL
'=====================================================================
|
|
' 主按钮点击事件
|
|
' 功能: 执行BOM提取和BIP上传
|
|
'=====================================================================
|
|
Private Sub CommandButton1_Click()
|
|
Call ProcessProductModels
|
|
Call ProcessOrdersToBIP
|
|
End Sub
|
|
|
|
'=====================================================================
|
|
' 部件库存核对按钮点击事件
|
|
' 功能: 执行部件库存核对,标记库存不足的订单
|
|
'=====================================================================
|
|
Private Sub CommandButton2_Click()
|
|
Call CheckComponentInventory
|
|
End Sub |