BoxLabelsEntity GitHub

πŸ“Š Overview: 8 Functions 19 Getters

Extends: Entity

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


πŸ“‘ Table of Contents


Functions

Regular Functions

getStatesCollection

Function getStatesCollection -> Collection

Returns collection of possible box label states: In Stock, Not Made, Removed From Stock

Returns: Collection


ModifyStatus

[πŸ–₯️ local]

Function ModifyStatus

Allows user to modify box status (In Stock/Not Made/Removed) with validation and permission checks


AddComment

[πŸ–₯️ local]

Function AddComment($Comment : Text; $StaffEntity : cs.StaffEntity)

Adds a timestamped comment to the box label’s comment history with staff member attribution

Parameters:

Name Type Optional Description
$Comment Text - -
$StaffEntity cs.StaffEntity - -

removeFromPallet

Function removeFromPallet -> $Success : Boolean

Removes this box from pallet assignment; locks box, clears PalletEntity link, and saves

Returns: Boolean


getNextBoxPacked

[πŸ–₯️ local]

Function getNextBoxPacked -> cs.BoxLabelsEntity

Returns next box with same tool that was packed after this one; used for box sequence tracking

Returns: cs.BoxLabelsEntity


generateQR

[πŸ–₯️ local]

Function generateQR -> Picture

Generates QR code picture from box label data (ID, product, quantity, works order); used for barcode labels

Returns: Picture


getMigrationRules

[πŸ–₯️ local]

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

Returns collection of EntityMigrationRule objects defining how to merge this box label with remote during sync

Parameters:

Name Type Optional Description
$RemoteEntity cs.BoxLabelsEntity - -

Returns: Collection


syncMigrationSelections

[πŸ–₯️ local]

Function syncMigrationSelections($RemoteEntity : cs.BoxLabelsEntity)

Synchronizes entity selection references after migration merge; updates foreign key references to maintain data integrity

Parameters:

Name Type Optional Description
$RemoteEntity cs.BoxLabelsEntity - -

Computed Attributes (Getters/Setters/Query/OrderBy)

AdviceNote

[πŸ” get only]

Function get AdviceNote -> Integer

Returns advice note number from Certificate of Conformance or Pallet assignment; used for despatch tracking

Returns: Integer


BoxNumberColor

[πŸ” get only]

Function get BoxNumberColor -> Integer

Returns color code for box number display based on status (NotMade, RemoveFromStock, LinkedBoxes, or PartBox)

Returns: Integer


BoxNumberDisplay

[πŸ” get only]

Function get BoxNumberDisplay -> Text

Returns formatted box number text; shows box number or part box code, with linked box code if applicable

Returns: Text


BoxQuantityDisplay

[πŸ” get only]

Function get BoxQuantityDisplay -> Text

Returns formatted box quantity text; shows total quantity or β€œparts + extras” if linked box included

Returns: Text


CurrentStatus

[πŸ” get only]

Function get CurrentStatus -> Object

Returns current status with text, background color, and foreground color based on box state

Returns: Object


Despatched

[πŸ” get, πŸ”Ž query]

Function get Despatched -> Boolean
Function query Despatched($QueryEventObject : Object)

Returns true if box has been despatched (has CoC or is on despatched pallet)

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 -

Returns: Boolean


GrossWeightKg

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

Function get GrossWeightKg -> Real

Calculates gross weight (net weight + 1kg for packaging: 800g box + 200g bags)

Returns: Real


HasMigrationID

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

Function get HasMigrationID -> Boolean

Returns true if box has valid migration ID (non-null and non-zero); indicates entity was involved in sync operation

Returns: Boolean


linkedBoxesQuantity

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

Function get linkedBoxesQuantity -> Integer

Returns total quantity from all linked/chained boxes; follows linked box chain to leaf

Returns: Integer


NetWeightKg

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

Function get NetWeightKg -> Real

Calculates the net weight in kilograms based on part weight and total quantity

Returns: Real


PackedByDisplay

[πŸ” get only]

Function get PackedByDisplay -> Text

Returns formatted text with packing staff name and datetime for box label display

Returns: Text


PartBox

[πŸ” get, πŸ”Ž query]

Function get PartBox -> Boolean
Function query PartBox($QueryEventObject : Object)

Returns true if this is a part box (PartBoxCode is not empty); used to identify extra/remainder boxes

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 -

Returns: Boolean


partBoxSkipped

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

Function get partBoxSkipped -> Boolean

Returns true if next packed box exists; indicates more boxes of this tool were packed

Returns: Boolean


PartsFromOtherWorksOrders->$Text {#partsfromotherworksorders->$text}

[πŸ” get only]

Function get PartsFromOtherWorksOrders->$Text -> Text

Returns formatted text listing quantities of parts from other works orders in linked box chain (e.g., β€˜12345: 50’)

Returns: Text


RouteCardColor

[πŸ” get only]

Function get RouteCardColor -> Integer

Returns rotating color code for route card number (7 colors) for visual grouping in listbox

Returns: Integer


StatusText

[πŸ” get only]

Function get StatusText -> Text

Returns formatted status text with staff name and timestamp when status was last updated; empty if no update recorded

Returns: Text


TestProduct

[πŸ” get only]

Function get TestProduct -> cs.ProductEntity

Returns the product entity associated with this box label; exposed for testing purposes

Returns: cs.ProductEntity


toolIsRunning

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

Function get toolIsRunning -> Boolean

Returns true if works order for this tool’s product is still in packing phase

Returns: Boolean


totalBoxQuantity

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

Function get totalBoxQuantity -> Integer

Returns total quantity including this box and all linked boxes; used for pallet/shipment totals

Returns: Integer


πŸ—‚οΈ Tables

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

οΏ½ Forms


Generated from BoxLabelsEntity.4dm


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