Add QOH column to Unused Items page

Sum itemsite_qtyonhand across all itemsites per item.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-31 06:55:14 -04:00
parent a8b9a45a5d
commit c851e06086
3 changed files with 44 additions and 5 deletions

View File

@@ -37,6 +37,7 @@
"Item Type",
"Class Code",
"BOMs Used In",
"QOH",
"Created By",
"Date Created",
"Last Transaction",
@@ -60,6 +61,7 @@
{"key": "primaryColumns.Item Type.computedValue"},
{"key": "primaryColumns.Class Code.computedValue"},
{"key": "primaryColumns.BOMs Used In.computedValue"},
{"key": "primaryColumns.QOH.computedValue"},
{"key": "primaryColumns.Created By.computedValue"},
{"key": "primaryColumns.Date Created.computedValue"},
{"key": "primaryColumns.Last Transaction.computedValue"},
@@ -251,6 +253,37 @@
"verticalAlignment": "CENTER",
"width": 150
},
"QOH": {
"alias": "QOH",
"allowCellWrapping": false,
"allowSameOptionsInNewRow": true,
"columnType": "number",
"computedValue": "{{(() => { const tableData = Table1.processedTableData || []; return tableData.length > 0 ? tableData.map((currentRow, currentIndex) => (currentRow[\"QOH\"])) : [] })()}}",
"currencyCode": "USD",
"decimals": 0,
"enableFilter": true,
"enableSort": true,
"horizontalAlignment": "LEFT",
"id": "QOH",
"index": 5,
"isCellEditable": false,
"isCellVisible": true,
"isDerived": false,
"isDisabled": false,
"isDiscardVisible": true,
"isEditable": false,
"isSaveVisible": true,
"isVisible": true,
"label": "QOH",
"notation": "standard",
"originalId": "QOH",
"sticky": "",
"textSize": "0.775rem",
"thousandSeparator": true,
"validation": {},
"verticalAlignment": "CENTER",
"width": 150
},
"Created By": {
"alias": "Created By",
"allowCellWrapping": false,
@@ -263,7 +296,7 @@
"enableSort": true,
"horizontalAlignment": "LEFT",
"id": "Created By",
"index": 5,
"index": 6,
"isCellEditable": false,
"isCellVisible": true,
"isDerived": false,
@@ -294,7 +327,7 @@
"enableSort": true,
"horizontalAlignment": "LEFT",
"id": "Date Created",
"index": 6,
"index": 7,
"isCellEditable": false,
"isCellVisible": true,
"isDerived": false,
@@ -325,7 +358,7 @@
"enableSort": true,
"horizontalAlignment": "LEFT",
"id": "Last Transaction",
"index": 7,
"index": 8,
"isCellEditable": false,
"isCellVisible": true,
"isDerived": false,
@@ -356,7 +389,7 @@
"enableSort": true,
"horizontalAlignment": "LEFT",
"id": "Days Unused",
"index": 8,
"index": 9,
"isCellEditable": false,
"isCellVisible": true,
"isDerived": false,