AddCons Method
- Last UpdatedNov 06, 2025
- 2 minute read
The AddCons() method adds consumption for the specified BOM item for the job running on the current job position.
'Declaration
Public Sub AddCons( _
ByVal BOMPos As Integer, _
ByVal qtyCons As Double, _
ByVal reasCd As Object, _
ByVal lotNo As String, _
ByVal fgLotNo As String, _
ByVal fromEntID As Object, _
ByVal itemID As String, _
ByVal extRef As String, _
ByVal spare1 As String, _
ByVal spare2 As String, _
ByVal spare3 As String, _
ByVal spare4 As String _
)
public void AddCons(
int BOMPos,
double qtyCons,
object reasCd,
string lotNo,
string fgLotNo,
object fromEntID,
string itemID,
string extRef,
string spare1,
string spare2,
string spare3,
string spare4
)
Parameters
- BOMPos
- Required. Holds the BOM position of the item being consumed.
- qtyCons
- Required. Holds the quantity being consumed.
- reasCd
- Optional. Holds the reason code of the item being consumed. Set to null if not used.
- lotNo
- Optional. Holds the lot number of the item being consumed. Set to null if not used.
- fgLotNo
- Optional. Holds the finished goods lot number of the item being consumed. Set to null if not being used.
- fromEntID
- Optional. Holds the ID of the entity (location) from which the consumed item is coming. Set to null if not being used.
- itemID
- Optional. Holds the item ID. Set to null if not being used.
- extRef
- Optional. Holds the external reference. Set to null if not being used.
- spare1
- Optional. Holds the spare 1 value. Set to null if not being used.
- spare2
- Optional. Holds the spare 2 value. Set to null if not being used.
- spare3
- Optional. Holds the spare 3 value. Set to null if not being used.
- spare4
- Optional. Holds the spare 4 value. Set to null if not being used.