MES Lot Quantity Summary Item

Sepasoft MES Module Suite

Lot Quantity Summary Item

This object holds Material Lot information such as quantity, schedule, units, etc. 

Warning

This object is not derived from the MESAbstractObject and therefore does not inherit its functions or properties.

Script Example: Get Lot Quantity Summary Item Object

Python
eqPath = '[global]\Nuts Unlimited\Folsom\Receiving\Nut Storage Silos\Peanut Silo'
lotInventory = system.mes.getLotInventoryByEquipment(eqPath)
print lotInventory
for lotSummary in lotInventory:
    lotUUID = lotSummary.getMaterialLotUUID()
    lotNo = lotSummary.getLotNumber()
    lotSeq = lotSummary.getLotSequence()
    matUUID = lotSummary.getMaterialUUID()
    matName = lotSummary.getMaterialName()
    matDescription = lotSummary.getMaterialDescription()
    inQuant = lotSummary.getInQuantity()
    outQuant = lotSummary.getOutQuantity()
    schedule = lotSummary.getScheduled()
    available = lotSummary.getAvailable()
    netQuant = lotSummary.getNetQuantity()
    units = lotSummary.getUnits()
    locationLink = lotSummary.getLocationLink()
    print "lot uuid: %s, lot number: %s, lot sequence: %d, material UUID: %s,
material name: %s, material Description: %s, In Quantity: %f,
Out Quantity: %f, schedule: %f, available: %f, net quantity: %f, units: %s,
locationLink: %s" % (lotUUID, lotNo, lotSeq, matUUID, matName, matDescription,
inQuant, outQuant, schedule, available, netQuant, units, locationLink)

Output

Python
Jython 2.5.3 (v2.5.3:3d2dbae23c52+, Nov 17 2012, 11:51:23)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_91
>>>
[P1000 - 1 (23d33501-e774-4045-90bb-b4d1fde37d9a), P1001 - 1 (a3a466bb-3a10-4305-9d7a-4ccbf08b2ae3), P1002 - 2 (8218a5ba-4fc9-4667-b8f4-8ed44c58780b)]
lot uuid: 23d33501-e774-4045-90bb-b4d1fde37d9a, lot number: P1000, lot sequence: 1, material UUID: 4f77a399-c0d0-42e5-89fb-075ca5a208df, material name: Bulk Peanuts, material Description: , In Quantity: 5000.000000, Out Quantity: 2600.000000, schedule: 0.000000, available: 2400.000000, net quantity: 2400.000000, units: lbs, locationLink: Peanut Silo
lot uuid: a3a466bb-3a10-4305-9d7a-4ccbf08b2ae3, lot number: P1001, lot sequence: 1, material UUID: 4f77a399-c0d0-42e5-89fb-075ca5a208df, material name: Bulk Peanuts, material Description: , In Quantity: 2500.000000, Out Quantity: 0.000000, schedule: 0.000000, available: 2500.000000, net quantity: 2500.000000, units: lbs, locationLink: Peanut Silo
lot uuid: 8218a5ba-4fc9-4667-b8f4-8ed44c58780b, lot number: P1002, lot sequence: 2, material UUID: 4f77a399-c0d0-42e5-89fb-075ca5a208df, material name: Bulk Peanuts, material Description: , In Quantity: 950.000000, Out Quantity: 0.000000, schedule: 0.000000, available: 950.000000, net quantity: 950.000000, units: lbs, locationLink: Peanut Silo
>>>

Object Creation

This object is created whenever a Material Lot is created.


Use

Object Functions


 

getAvailable()

Description

Get the available quantity of the item. Available quantity = Quantity of material fed into the segment in the beginning - (Quantity fed out of the segment + scheduled quantity)

Syntax

getAvailable()

  • Parameters

 None

  • Returns

Double The quantity of material that is available.

  • Scope

All

 

getInQuantity()

Description

Get the quantity of material feeding into a segment that will be part of the finished goods.

Syntax

getInQuantity()

  • Parameters

 None

  • Returns

Double inQty - The quantity of material.

  • Scope

All

 

getLocationLink()

Description

Get the link to the location of the material lot

Syntax

getLocationLink()

  • Parameters

 None

  • Returns

 MES Object Link locationLink - The link representing the location.

  • Scope

All

 getLotNumber()

Description

Get the lot number of the material lot used to filter the results.

Syntax

getLotNumber()

  • Parameters

 None

  • Returns

String materialLotNumber - The lot number to return the material lot object for.

  • Scope

All

 

getLotSequence()

Description

Get the lot sequence of the material lot used to filter the results. The sequence property is incremented every time a new Material Lot is created for a given lot number.

Syntax

getLotSequence()

  • Parameters

 None

  • Returns

Integer  sequenceNumber - The lot sequence number to return the link for.  If it is less than zero, then the lot holding the maximum value is returned and if the same lot number is used for multiple segments, each lot with the same lot number will be assigned a different lot sequence number. 

  • Scope

All

 

getMaterialDescription()

Description

The description about the material.

Syntax

getMaterialDescription()

  • Parameters

 None

  • Returns

String description - The description of the specified material.

  • Scope

All

 

getMaterialLot()

Description

 Return the material lot MES object associated the specified material property of a segment. 

Syntax

getMaterialLot()

  • Parameters

 None

  • Returns

 MESMaterialLot materialLot - A MESMaterialLot object that is associated with the specified material property for segment.

  • Scope

All

 getMaterialLotUUID()

Description

Get the UUID of the material lot used to filter the results.

Syntax

getMaterialLotUUID()

  • Parameters

 None

  • Returns

String materialLotUUID - The UUID of the Material Definition to assign to the Material Lot object.

  • Scope

All

 

getMaterialName()

Description

The name of the material to assign to the Material Lot object.

Syntax

getMaterialName()

  • Parameters

 None

  • Returns

String materialName - The name of the specified material.

  • Scope

All

 

getMaterialUUID()

Description

The UUID of the material to assign to the Material Lot object. See UUIDs for more information.

Syntax

getMaterialUUID()

  • Parameters

 None

  • Returns

String materialUUID - The UUID of the specified material.

  • Scope

All

 getNetQuantity()

Description

Get the net quantity of material in the lot. Net quantity = quantity in the beginning - used quantity of the item.

Syntax

getNetQuantity()

  • Parameters

 None

  • Returns

Double netQty - The net quantity of material.

  • Scope

All

 

getOutQuantity()

Description

Get the quantity of material feeding out from a segment that will be part of the finished goods.

Syntax

getOutQuantity()

  • Parameters

None

  • Returns

Double outQty - The quantity of material.

  • Scope

All

 

getScheduled()

Description

Get the scheduled quantity of material.

Syntax

getScheduled()

  • Parameters

 None

  • Returns

Double scheduled - The scheduled quantity of material.

  • Scope

All

 getUnits()

Description

 This specifies the units for the quantity setting.

Syntax

getUnits()

  • Parameters

 None

  • Returns

 String units - The units of quantity.

  • Scope

All

 

setInQuantity()

Description

Set the quantity of material feeding into a segment that will be part of the finished goods.

Syntax

setInQuantity()

  • Parameters

   Double inQty - The quantity of material.

  • Returns

Nothing

  • Scope

All

 

setLocationLink()

Description

Get the link to the location of the material lot

Syntax

setLocationLink()

  • Parameters

  MES Object Link locationLink - The link representing the location.

  • Returns

 Nothing

  • Scope

All

 

setLotNumber()

Description

Set the lot number of the material lot used to filter the results.

Syntax

setLotNumber()

  • Parameters

   String materialLotNumber - The lot number to return the material lot object for.

  • Returns

Nothing

  • Scope

All

 setLotSequence()

Description

Set the lot sequence of the material lot used to filter the results. The sequence property is incremented every time a new Material Lot is created for a given lot number.

Syntax

setLotSequence()

  • Parameters

Integer  sequenceNumber - The lot sequence number to return the link for. If it is less than zero, then the lot holding the maximum value is returned and if the same lot number is used for multiple segments, each lot with the same lot number will be assigned a different lot sequence number. 

  • Returns

Nothing

  • Scope

All

 

setMaterialDescription()

Description

The description about the material.

Syntax

setMaterialDescription()

  • Parameters

  String description - The description of the specified material.

  • Returns

Nothing

  • Scope

All

 setMaterialLotUUID()

Description

Set the UUID of the material lot used to filter the results.

Syntax

setMaterialLotUUID()

  • Parameters

String materialLotUUID - The UUID of the Material Definition to assign to the Material Lot object.

  • Returns

Nothing

  • Scope

All

 

setMaterialName()

Description

The name of the material to assign to the Material Lot object.

Syntax

setMaterialName()

  • Parameters

  String matName - The name of the specified material.

  • Returns

Nothing

  • Scope

All

 

setMaterialUUID()

Description

The UUID of the material to assign to the Material Lot object. See UUIDs for more information.

Syntax

setMaterialUUID()

  • Parameters

  String matUUID - The UUID of the specified material.

  • Returns

Nothing

  • Scope

All

 

setUnits()

Description

 This specifies the units for the quantity setting.

Syntax

setUnits()

  • Parameters

  String units - The units of quantity.

  • Returns

 Nothing

  • Scope

All

Sepasoft MES Module Suite