Commit Graph

13 Commits

Author SHA1 Message Date
2e25ec7b8c Fall back to item_descrip2 when item_descrip1 is empty
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 07:04:39 -04:00
b0ac6081cc Resized table 2026-03-31 10:57:33 +00:00
c851e06086 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>
2026-03-31 06:55:14 -04:00
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
ac5d2f5e40 Resolve merge conflict in unused_items query metadata
Keep hardcoded 365 days version for testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 16:06:58 -05:00
1771c1f214 Merge branch 'MBS-2045' of https://bitbucket.org/magnapower/statistics-app into MBS-2045
# Conflicts:
#	pages/Operations - Unused Items/queries/unused_items/metadata.json
2026-03-23 16:04:39 -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
1017841419 System generated commit, for syncing changes with remote after git pull 2026-03-23 20:48:55 +00: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