4 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