BoxLabelsEntity
| π Overview: 8 Functions | 19 Getters |
Extends: Entity
π Last updated: 2026-01-13T16:04:11.072Z
π Table of Contents
- βοΈ Functions
- Regular Functions
- getStatesCollection β
Collection - ModifyStatus π₯οΈ
- AddComment (2 params) π₯οΈ
- removeFromPallet β
$Success : Boolean - getNextBoxPacked β
cs.BoxLabelsEntityπ₯οΈ - generateQR β
Pictureπ₯οΈ - getMigrationRules (1 param) β
$Collection : Collectionπ₯οΈ - syncMigrationSelections (1 param) π₯οΈ
- getStatesCollection β
- Computed Attributes (Getters/Setters/Query/OrderBy)
- AdviceNote π β
Integer - BoxNumberColor π β
Integer - BoxNumberDisplay π β
Text - BoxQuantityDisplay π β
Text - CurrentStatus π β
Object - Despatched π π β
Boolean - GrossWeightKg π β
Real - HasMigrationID π β
Boolean - linkedBoxesQuantity π β
Integer - NetWeightKg π β
Real - PackedByDisplay π β
Text - PartBox π π β
Boolean - partBoxSkipped π β
Boolean - PartsFromOtherWorksOrders->$Text π β
Text - RouteCardColor π β
Integer - StatusText π β
Text - TestProduct π β
cs.ProductEntity - toolIsRunning π β
Boolean - totalBoxQuantity π β
Integer
- AdviceNote π β
- Regular Functions
- π Related Items
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
Related Items
ποΈ Tables
- BoxLabels - ORDA Entity class for BoxLabels table
οΏ½ Related Classes
- BoxLabels - ORDA DataClass class for BoxLabels table
οΏ½ Forms
- %2Atest - Data source for %2Atest form
- %2Atest1 - Data source for %2Atest1 form
- CancelAdviceNote - Data source for CancelAdviceNote form
- LabelPrinting - Data source for LabelPrinting form
- NSKPalletIDs - Data source for NSKPalletIDs form
- PalletDespatchList - Data source for PalletDespatchList form
- Warehouse - Data source for Warehouse form
Generated from BoxLabelsEntity.4dm