# `Fun_GetMachineLenWidth` (function) - **Type:** FUNCTION - **Returns:** `int` - **Deterministic:** NO - **SQL data access:** CONTAINS SQL ## Parameters | # | Mode | Name | Type | |---|---|---|---| | 1 | IN | `sMachineLength` | `int` | | 2 | IN | `sMachineWidth` | `int` | ## Body _Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE FUNCTION `Fun_GetMachineLenWidth`'`._ ## Narrative **Business context:** Hard-coded machine-size matching helper — returns `1` if the long side exceeds 1020 or the short side exceeds 720 (probably the limits of a specific press size class), else `0`. The thresholds are literal magic numbers in the body. **What it does:** Sorts the two dimensions so length ≥ width, then flags when the sheet exceeds 1020×720. **Invocation:** Status: appears orphaned. No caller found in any channel (form-master, gdsmodule hooks, other routines, xly-src grep) — earlier substring matches against `Sp_GetMachineByApsRule` resolve to the sibling `Fun_GetMachineLenWidthAPS`, not this one. Candidate for maintainer audit; the parameterised APS variant has superseded it.