PopupReduceProdDlg(DateTime,Nullable<DateTime>,String,String,String,Int32,Int32,String,Double,Object,String,Int32) Method
- Last UpdatedNov 06, 2025
- 2 minute read
This overload of the PopupReduceProdDlg() method opens the Reduce Production dialog for a lot. This dialog allows the user to adjust down the amount of production reported in a row in the Item_Prod table.
'Declaration
Public Overloads Function PopupReduceProdDlg( _
ByVal shiftStart As Date, _
ByVal hourStart As Nullable(Of Date), _
ByVal lotNo As String, _
ByVal itemID As String, _
ByVal itemDesc As String, _
ByVal shiftID As Integer, _
ByVal reasCd As Integer, _
ByVal reasDesc As String, _
ByVal qty As Double, _
ByVal storageEntID As Object, _
ByVal storageEntDesc As String, _
ByVal byProduct As Integer _
) As Boolean
public bool PopupReduceProdDlg(
DateTime shiftStart,
Nullable<DateTime> hourStart,
string lotNo,
string itemID,
string itemDesc,
int shiftID,
int reasCd,
string reasDesc,
double qty,
object storageEntID,
string storageEntDesc,
int byProduct
)
Parameters
- shiftStart
- Required. Holds the start of the shift during which the item was produced.
- hourStart
- Required. Holds the start of the hour during which the item was produced.
- lotNo
- Required. Holds the lot number of the produced row of which the item is part.
- itemID
- Required. Holds the ID of the item produced.
- itemDesc
- Required. Holds the description of the item produced.
- shiftID
- Required. Holds the ID of the shift during which the item was produced.
- reasCd
- Required. Holds the production reason code given when the item was produced.
- reasDesc
- Required. Holds the production reason description given when the item was produced.
- qty
- Required. Holds the amount produced.
- storageEntID
- Required.Holds the ID of the entity in which the produced item was stored.
- storageEntDesc
- Required.Holds the name of the entity in which the produced item was stored.
- byProduct
- Required. Holds a flag that, if set to true, indicates that the item is a by-product.
Return Value
Returns true if the user reduces the quantity; otherwise, it returns
false.