TransQtyToCurJob(Int32,Int32,String,String,Int32,Double,Double,String,Nullable<Int32>) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The TransQtyToCurJob() method transfers quantities to the job currently running on the specified entity.
This overload of the method uses the entity ID to specify the entity.
'Declaration
Public Overloads Shared Sub TransQtyToCurJob( _
ByVal sessionId As Integer, _
ByVal entId As Integer, _
ByVal woId As String, _
ByVal operId As String, _
ByVal seqNo As Integer, _
ByVal qtyAtStart As Double, _
ByVal qtyReqd As Double, _
ByVal statusNotes As String, _
ByVal jobPos As Nullable(Of Integer) _
)
'Usage
Dim sessionId As Integer
Dim entId As Integer
Dim woId As String
Dim operId As String
Dim seqNo As Integer
Dim qtyAtStart As Double
Dim qtyReqd As Double
Dim statusNotes As String
Dim jobPos As Nullable(Of Integer)
JobExec.TransQtyToCurJob(sessionId, entId, woId, operId, seqNo, qtyAtStart, qtyReqd, statusNotes, jobPos)
public static void TransQtyToCurJob(
int sessionId,
int entId,
string woId,
string operId,
int seqNo,
double qtyAtStart,
double qtyReqd,
string statusNotes,
Nullable<int> jobPos
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- entId
- Required. Holds the ID of the entity that is currently running job(s).
- woId
- Required. Holds the work order ID of the job.
- operId
- Required. Holds the ID of the operation number of the job.
- seqNo
- Required. Holds the job sequence number.
- qtyAtStart
- Required. Holds the quantity expected to produce if there are no scrap/waste/rejects.
- qtyReqd
- Required. Holds the quantity of item required.
- statusNotes
- Optional. Holds notes about the status of the quantity transfer.
- jobPos
- Optional. Holds the job position. If greater than 1, jobs are running on this entity.
The required quantity and the start quantity from the source job are added to the job that is currently running on the entity, and the supplied status notes is appended to the existing notes for the job that is currently running on the entity.
Subsequently, the required quantity and the start quantity from the source job are reduced by the supplied quantities, and the supplied status note is appended to the existing notes of the source job.
For the method to succeed, the following must be true:
- The supplied job is currently running on the entity.
- The supplied job and the job that is currently running on the supplied entity at the supplied job position are not identical.
- The supplied source job exists in the database.