PopupAddWasteDlg Method
- Last UpdatedNov 06, 2025
- 1 minute read
The PopupAddWasteDlg() method opens the Reject form to allow the user to mark an amount of a consumed item as wasted.
'Declaration
Public Function PopupAddWasteDlg( _
ByVal itemID As String, _
ByVal itemDesc As String, _
ByVal storageEntID As Integer, _
ByVal qty As Double, _
ByVal bomPos As Integer, _
ByVal lotNo As String, _
ByVal must_consume_from_inv As Boolean, _
ByVal may_choose_alt_inv_loc As Boolean, _
ByVal may_create_new_lots As Boolean _
) As Boolean
public bool PopupAddWasteDlg(
string itemID,
string itemDesc,
int storageEntID,
double qty,
int bomPos,
string lotNo,
bool must_consume_from_inv,
bool may_choose_alt_inv_loc,
bool may_create_new_lots
)
Parameters
- itemID
- Required. Holds the ID of the item being wasted.
- itemDesc
- Required. Holds the description of the item being wasted.
- storageEntID
- Required. Holds the ID of the entity in which the item is stored.
- qty
- Required. Holds the default amount to waste.
- bomPos
- Required. Holds the BOM position of the item being wasted.
- lotNo
- Required. Holds the lot number of the item being wasted.
- must_consume_from_inv
- Required. Holds a flag that, if set to true, indicates that the item must be consumed from inventory.
- may_choose_alt_inv_loc
- Required. Holds a flag that, if set to true, indicates that a new storage entity can be selected.
- may_create_new_lots
- Required. Holds a flag that, if set to true, indicates that a new lot number can be selected.
Return Value
Returns true if the user wastes some of the item; otherwise, it returns
false.