PopupReduceProdDlg(DateTime,String,String,String,Int32,Int32,String,Double,Double,Double,Object,String,Int32,Boolean) Method
- Last UpdatedNov 06, 2025
- 2 minute read
This overload of the PopupReduceProdDlg() method opens the Reduce Production dialog for a lot if the item is not serialized, and the serialized Reduce Production dialog for a lot if the item is serialized, with the Completed list of serial numbers displayed. The isSerialized flag indicates whether the item is serialized or not. Both dialogs allow the user to adjust down the amount of production reported in a row in the Item_Prod table.
Note: This overload does not provide the hour within the shift.
'Declaration
Public Overloads Function PopupReduceProdDlg( _
ByVal shiftStart As 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 rejQty As Double, _
ByVal startQty As Double, _
ByVal storageEntID As Object, _
ByVal storageEntDesc As String, _
ByVal byProduct As Integer, _
ByVal isSerialized As Boolean _
) As Boolean
public bool PopupReduceProdDlg(
DateTime shiftStart,
string lotNo,
string itemID,
string itemDesc,
int shiftID,
int reasCd,
string reasDesc,
double qty,
double rejQty,
double startQty,
object storageEntID,
string storageEntDesc,
int byProduct,
bool isSerialized
)
Parameters
- shiftStart
- Required. Holds the start of the shift during which the item was produced.
- lotNo
- Required. Holds the lot number of the produced row.
- 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.
- rejQty
- Required. Holds the amount rejected.
- startQty
- Required. Holds the amount at the start of production.
- 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.
- isSerialized
- Required. Holds a flag that, if set to true, indicates that the item is serialized.
Return Value
Returns true if the user reduces the quantity; otherwise, it returns
false.