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>
- 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>
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>