Commit Graph

7 Commits

Author SHA1 Message Date
9e88a6b1ad Add Class Code and BOMs Used In columns to Unused Items page
- Join classcode table for class code display
- Subquery bomitem for count of distinct parent BOMs each item appears in
- Add both columns to table widget between Item Type and Created By

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 08:56:50 -05:00
74ff4d6aef Filter to active items only, remove Status column, document widget binding rules
- Add WHERE item_active filter to show only active unused items
- Remove Status column from query and table widget
- Add widget binding guidance to AGENTS.md (NUMBER inputs
  cannot use NULLIF pattern due to prepared statement typing)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 16:24:41 -05:00
ac475d683f Fix type mismatch in UnusedDays binding
NULLIF(int, '') fails when prepared statements type the parameter
as integer. Use direct cast since NUMBER input always has a value.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 16:18:58 -05:00
a541c4cc69 Restore UnusedDays widget binding in query
Re-add NULLIF/COALESCE pattern for UnusedDays.text input filter
now that the base query is confirmed working.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 16:13:31 -05:00
659b29e2f5 Hardcode 365 days to isolate query issue from widget binding
Remove UnusedDays.text widget reference and dynamicBindingPathList
to test whether the base query works against the datasource.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 16:03:26 -05:00
50d522d312 Fixed filter location and query nulls 2026-03-23 15:44:35 -05:00
acf1fd9097 Added Unused Items stat 2026-03-23 15:38:36 -05:00