PopupReduceConsDlg(DateTime,String,String,String,String,Int32,Int32,String,Double,Object,String,Int32,String,Int32) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The PopupReduceConsDlg() method opens the Reduce Consumption dialog. This allows the user to adjust down the amount of consumption reported in a row in the Item_Cons table.
'Declaration
Public Overloads Function PopupReduceConsDlg( _
ByVal shiftStart As Date, _
ByVal lotNo As String, _
ByVal sublotNo 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, _
ByVal fgLotNo As String, _
ByVal rowID As Integer _
) As Boolean
public bool PopupReduceConsDlg(
DateTime shiftStart,
string lotNo,
string sublotNo,
string itemID,
string itemDesc,
int shiftID,
int reasCd,
string reasDesc,
double qty,
object storageEntID,
string storageEntDesc,
int byProduct,
string fgLotNo,
int rowID
)
Parameters
- shiftStart
- Required. Holds the start time of the shift during which the consumption took place.
- lotNo
- Required. Holds the lot number consumed.
- sublotNo
- Required. Holds the sub lot number of the produced row of which the item is part.
- itemID
- Required. Holds the ID of the item consumed.
- itemDesc
- Required. Holds the description of the item consumed.
- shiftID
- Required. Holds the ID of the shift during which the consumption took place.
- reasCd
- Required. Holds the code of the consumption reason.
- reasDesc
- Required. Holds the description of the consumption reason.
- qty
- Required. Holds the amount consumed.
- storageEntID
- Optional. Holds the ID of the entity from which the item was consumed.
- storageEntDesc
- Optional. Holds the name of the entity from which the item was consumed.
- byProduct
- Required. Holds a integer value (1 for true, 0 for false) that indicates whether the item is a by-product.
- fgLotNo
- Required. Holds the lot number of the item produced.
- rowID
- Required. Holds the row ID of the Item_Cons row.
Return Value
Returns true if the user reduces consumption; otherwise, it returns false.