ProductEntity GitHub

πŸ“Š Overview: 11 Functions 3 Getters 1 Setters

Extends: Entity

πŸ• Last updated: 2026-01-13T16:04:12.926Z


πŸ“‘ Table of Contents


Functions

Regular Functions

getRobotHeadList

[πŸ–₯️ local]

Function getRobotHeadList($Machine : Integer) -> Text

Returns space-separated list of robot head numbers for this product on specified machine; returns empty string if no grippers found

Parameters:

Name Type Optional Description
$Machine Integer - -

Returns: Text


getMainTool

[πŸ–₯️ local]

Function getMainTool -> cs.ToolsEntity

Returns main tool for this product, or last tool if no main tool marked; used for tool-related operations and regrind decisions

Returns: cs.ToolsEntity


getPreviousPickRequestQuantity

[πŸ–₯️ local]

Function getPreviousPickRequestQuantity($PickRequestEntity : cs.PickRequestEntity; $OrderPickRequestEntity : cs.OrderPickRequestEntity) -> Integer

Returns quantity of this product already requested in pick requests before the given one; used to calculate available stock for picking

Parameters:

Name Type Optional Description
$PickRequestEntity cs.PickRequestEntity - -
$OrderPickRequestEntity cs.OrderPickRequestEntity - -

Returns: Integer


getFinishedStock

[πŸ–₯️ local]

Function getFinishedStock -> Integer

Returns total finished stock quantity for this product in default packing location; includes all finished goods in inventory

Returns: Integer


getQuarantinedStock

[πŸ–₯️ local]

Function getQuarantinedStock -> Integer

Returns total quarantined finished stock for this product; stock under quality hold

Returns: Integer


getWIP

[πŸ–₯️ local]

Function getWIP -> Integer

Returns work-in-progress quantity for open works orders of this product; production currently running

Returns: Integer


getPlannedProduction

[πŸ–₯️ local]

Function getPlannedProduction($DespatchDate : Date) -> Integer

Returns planned production quantity up to despatch date from wheel calendar; scheduled future production

Parameters:

Name Type Optional Description
$DespatchDate Date - -

Returns: Integer


getPickRequestedQuantity

[πŸ–₯️ local]

Function getPickRequestedQuantity -> Integer

Returns total unprocessed quantity in active pick requests for this product; amount already allocated to orders

Returns: Integer


getAvailableStock

[πŸ–₯️ local]

Function getAvailableStock($PickRequestEntity : cs.PickRequestEntity; $OrderPickRequestEntity : cs.OrderPickRequestEntity) -> Integer

Returns total available stock for picking: finished + quarantined + WIP + planned production minus previous pick requests; used for stock allocation

Parameters:

Name Type Optional Description
$PickRequestEntity cs.PickRequestEntity - -
$OrderPickRequestEntity cs.OrderPickRequestEntity - -

Returns: Integer


getMigrationRules

[πŸ–₯️ local]

Function getMigrationRules($RemoteEntity : cs.ProductEntity) -> $Collection : Collection

Returns collection of EntityMigrationRule objects defining how to merge this product with remote product during sync; handles field mapping and conflict resolution

Parameters:

Name Type Optional Description
$RemoteEntity cs.ProductEntity - -

Returns: Collection


syncMigrationSelections

[πŸ–₯️ local]

Function syncMigrationSelections($RemoteEntity : cs.ProductEntity)

Synchronizes all related entity selections (materials, tools, procedures, packaging, grippers, BOMs) with remote product during merge operation

Parameters:

Name Type Optional Description
$RemoteEntity cs.ProductEntity - -

Computed Attributes (Getters/Setters/Query/OrderBy)

Emoji

[πŸ” get only, πŸ–₯️ local]

Function get Emoji -> Text

Returns emoji character from associated EmojisEntity, or empty string if no emoji assigned

Returns: Text


HasMigrationID

[πŸ” get only, πŸ–₯️ local]

Function get HasMigrationID -> Boolean

Returns true if this product has a migration ID assigned (> 0); indicates if product is subject to data synchronization

Returns: Boolean


MainToolRegrind

[πŸ” get, ✏️ set, πŸ–₯️ local]

Function get MainToolRegrind -> Boolean
Function set MainToolRegrind($MainToolRegrind : Boolean)

Returns regrind status of main tool for this product; indicates if main tool requires regrinding

Setter Parameter:

Name Type Description
$MainToolRegrind Boolean -

Returns: Boolean


OurPartName

[πŸ”Ž query only, πŸ–₯️ local]

Function query OurPartName($QueryEventObject : Object)

Query event handler for OurPartName attribute; maps field name from β€˜Our Part No’ to proper ORDA query operator format

Query Function: Enables querying this property in ORDA query strings (e.g., .query(":1"; $Value) where :1 is the property name).

Query Parameter:

Name Type Description
$QueryEventObject Object -

πŸ—‚οΈ Tables

  • Product - ORDA Entity class for Product table
  • Product - ORDA DataClass class for Product table

οΏ½ Forms


Generated from ProductEntity.4dm


This site uses Just the Docs, a documentation theme for Jekyll.