ItemServicesConsumeItem Method |
Consumes the specified quantity of material from the specified
Item.
Only items with a Classification of Part can be consumed.
Namespace:
FactoryLogix.xTend.Logistics
Assembly:
FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.245.0.0 (8.245.0.0)
Syntax public void ConsumeItem(
Guid sessionId,
Guid itemId,
double quantity,
string batchName
)
Public Sub ConsumeItem (
sessionId As Guid,
itemId As Guid,
quantity As Double,
batchName As String
)
public:
virtual void ConsumeItem(
Guid sessionId,
Guid itemId,
double quantity,
String^ batchName
) sealed
abstract ConsumeItem :
sessionId : Guid *
itemId : Guid *
quantity : float *
batchName : string -> unit
override ConsumeItem :
sessionId : Guid *
itemId : Guid *
quantity : float *
batchName : string -> unit
Parameters
- sessionId
- Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method. - itemId
- Type: SystemGuid
An Item object representing the new item to be processed. - quantity
- Type: SystemDouble
The quantity of material to be consumed from the Item.
If the amount specified exceeds the amount remaining, the quantity of Item will be set to zero, but the specified amound consumed will be recorded in the history. - batchName
- Type: SystemString
An optional parameter specifying the production work order (batch) that the consumption should be charged against.
Exceptions See Also