PalletEntity GitHub

πŸ“Š Overview: 9 Functions 4 Getters

Extends: Entity

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


πŸ“‘ Table of Contents


Functions

Regular Functions

createPrintJob

Function createPrintJob($StaffID : Integer; $PrinterID : Integer) -> $Success : Boolean

Creates a print job for this pallet label and marks pallet as printed

Parameters:

Name Type Optional Description
$StaffID Integer - -
$PrinterID Integer - -

Returns: Boolean


getWorksOrderCollection

Function getWorksOrderCollection -> Collection

Returns a collection of distinct works order IDs from all boxes on this pallet

Returns: Collection


getTotalQuantity

Function getTotalQuantity($WorksOrderEntity : Integer) -> Integer

Returns the total quantity of items on this pallet, optionally filtered by works order

Parameters:

Name Type Optional Description
$WorksOrderEntity Integer - -

Returns: Integer


getTotalBoxes

Function getTotalBoxes($WorksOrderEntity : Integer) -> Integer

Returns the total number of boxes on this pallet, optionally filtered by works order

Parameters:

Name Type Optional Description
$WorksOrderEntity Integer - -

Returns: Integer


generateQR

[πŸ–₯️ local]

Function generateQR -> Picture

Generates a QR code picture from the pallet QR object

Returns: Picture


getStockListBoxObject

[πŸ–₯️ local]

Function getStockListBoxObject -> Object

Returns an object representing this pallet for display in stock list boxes

Returns: Object


getMigrationRules

[πŸ–₯️ local]

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

Returns migration rules for syncing pallet data during migration

Parameters:

Name Type Optional Description
$RemoteEntity cs.PalletEntity - -

Returns: Collection


syncMigrationSelections

[πŸ–₯️ local]

Function syncMigrationSelections($RemoteEntity : cs.PalletEntity)

Syncs related box label and print job selections during migration (currently commented out)

Parameters:

Name Type Optional Description
$RemoteEntity cs.PalletEntity - -

transfer

[πŸ–₯️ local]

Function transfer($ToLocation : Integer) -> Boolean

Transfers this pallet to a new location by moving stock and updating location, within a transaction

Parameters:

Name Type Optional Description
$ToLocation Integer - -

Returns: Boolean


Computed Attributes (Getters/Setters/Query/OrderBy)

GrossWeightKg

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

Function get GrossWeightKg -> Real

Returns the total gross weight in kg of all boxes plus 20kg for pallet weight

Returns: Real


HasMigrationID

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

Function get HasMigrationID -> Boolean

Returns true if this pallet has a valid migration ID

Returns: Boolean


NetWeightKg

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

Function get NetWeightKg -> Real

Returns the total net weight in kg of all boxes on this pallet

Returns: Real


QRObject

[πŸ” get only]

Function get QRObject -> Object

Returns an object containing pallet data for QR code generation

Returns: Object


πŸ—‚οΈ Tables

  • Pallet - ORDA Entity class for Pallet table
  • Pallet - ORDA DataClass class for Pallet table
  • PalletSelection - ORDA EntitySelection class for Pallet table

οΏ½ Forms


Generated from PalletEntity.4dm


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