110 Commits

Author SHA1 Message Date
ef9e518e01 Pre-merge 2026-04-03 17:42:41 +00:00
5f6d54e72c Fix Critical Parts qty_available to show actual QOH from MPE warehouse
Join directly to itemsite (warehouse 35/MPE) and call qtynetable() per
part instead of using MAX from shortage lines, which was NULL for MTO parts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 13:40:19 -04:00
c3d0cb8ff6 Add customer name column, fix date format, fix Critical Parts type casting
- Add customer_name via coitem -> cohead -> custinfo join (blank for stock builds)
- Format wo_duedate as YYYY-MM-DD using to_char()
- Fix 'unknown to text' error in UNION by casting MTS/MTO literals to ::text

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 13:36:52 -04:00
ac93d07e68 Add Operations - WO Shortages page with MTS/MTO shortage tracking
Automates the production manager's manual workflow of checking xTuple WO
Schedule + Kit Material Shortage for FA department work orders. Two tabs:
WO Shortages (detail per WO + shortage line) and Critical Parts (aggregated
parts blocking near-term shipments). Nav button added to all pages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 12:22:35 -04:00
e55d6acdbd Merge branch 'MBS-2045' 2026-03-31 07:44:58 -04:00
4a3015b430 Remove extra dynamicHeight properties from Unused Items active button
Match other active nav buttons which don't have these properties.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 07:27:23 -04:00
300a2bcf5a Add boxShadow none to Unused Items nav button on all pages
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 07:25:09 -04:00
0ae80cb24c Fixed border color again 2026-03-31 07:23:52 -04:00
e44f5ff5ca Fixed border radius 2026-03-31 07:20:31 -04:00
3b074a0ca5 Resized tables 2026-03-31 11:07:24 +00:00
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
b0519352cc Merge branch 'MBS-2045' of https://bitbucket.org/magnapower/statistics-app into MBS-2045 2026-03-31 07:00:10 -04:00
855681fa2d Add .claude/settings.local.json to gitignore
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 06:59:17 -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
a8b9a45a5d Enable built-in table column filters on Unused Items page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 09:01:14 -05: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
815023dca9 no message 2026-03-23 16:15:17 -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
c29125c3e0 Merge remote-tracking branch 'origin/MBS-2045' into MBS-2045
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 15:47:43 -05:00
50d522d312 Fixed filter location and query nulls 2026-03-23 15:44:35 -05:00
0579c2158d System generated commit, for syncing changes with remote after git pull 2026-03-23 20:38:54 +00:00
acf1fd9097 Added Unused Items stat 2026-03-23 15:38:36 -05:00
2979f21e52 Merged in feature/sub-navigation-items (pull request #1)
Feature/sub navigation items

Approved-by: Adam Pitel
2026-03-16 12:55:25 +00:00
fd3b07ea9a Autogen 2026-03-16 10:30:57 +00:00
4cce1740d4 System generated commit, for syncing changes with remote after git pull 2026-03-16 10:29:11 +00:00
ivarsbariss
4b4c1d38fd Prepare for launch 2026-03-16 11:28:15 +01:00
43a660e8a6 Move Sales units shipped to prod db 2026-03-16 10:15:53 +00:00
bf7d187e6f Move capacity planning to live db 2026-03-16 10:14:09 +00:00
ivarsbariss
00f66281c6 Fix navigation 2026-03-13 12:02:44 +01:00
0bcc69ccdf Autogenerated 2026-03-13 10:55:14 +00:00
ivarsbariss
403c7ff86f Improved all pending pos query 2026-03-13 11:40:47 +01:00
57f3e27710 Cleanup 2026-03-13 10:23:49 +00:00
ivarsbariss
8ab878f39e Merge origin/feature/sub-navigation-items
Made-with: Cursor
2026-03-13 11:20:19 +01:00
ivarsbariss
2f4f863269 Fixed units shipped query 2026-03-13 11:16:09 +01:00
9614949714 Autogenerated from Appsmith 2026-03-05 13:03:58 +00:00
ivarsbariss
a75ca9d4b3 Test change 2026-03-05 14:00:27 +01:00
ivarsbariss
a20bd77860 Add Operations section 2026-03-05 13:57:41 +01:00
bef4ad8400 Auto generated 2026-03-05 10:43:47 +00:00
ivarsbariss
3a48064c27 Add xGen page 2026-03-05 11:41:28 +01:00
ivarsbariss
6aa6f485c5 New section 2026-03-05 11:17:45 +01:00
ivarsbariss
5278411b97 Update navigation and pages 2026-03-05 10:49:47 +01:00
ivarsbariss
5b0f03e231 Merge 2026-03-05 10:34:16 +01:00
ivarsbariss
534216bb54 Correct the navigation naming 2026-03-05 10:29:01 +01:00