toga-ai 1.0.684 → 1.0.685

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,4 +5,4 @@
5
5
  | [NYCHH NetSuite → TransferOrders import (stocking-flag routing, PO bridges, origin location)](features/netsuite-transfer-order-import.md) | 1.0 | NYCHH's NetSuite **transfer orders are represented as NetSuite sales orders** (same as the GroWrk pattern), so the shared NetSuite → TOGa Supply importer (`App_ | library/app/api/toga2.php, library/app/api/netsuite/rest.php, library/app/netsuite.php, worker/crons/toga2/netsuite/sync_togasupply_hh.php, worker/crons/toga2/netsuite/common_sync_togasupply.php |
6
6
  | [NYCHH PO links are UPSTREAM — the downstream SO→PO route returns empty](features/po-number-upstream-direction.md) | 2.0 | NYCHH's sales orders are created **from the customer's purchase order**, so their SO↔PO links live in the **upstream** table `PurchaseOrders_SalesOrders` (route | _underscore/Model/Client/SalesOrder.php, _underscore/Trait/Netsuite/SalesOrder.php, toga25-supply/src/pages/SalesOrders/view/SalesOrderRecordModalLayout/hooks/usePurchaseOrderDetails.ts, dbchanges2/Client/2026-08-11b - SalesOrderPurchaseOrdersField.sql, dbchanges2/Client/2026-08-25 - SalesOrderPurchaseOrdersFieldAllClients.sql |
7
7
  | [NYCHH transfer-order 2.0 model — inventory quantities + V2 field enablement](features/transfer-order-inventory-quantities.md) | 2.0 | The 2.0 (`_underscore`) side of NYCHH transfer-order support: a **two-branch inventory quantity model** on the NYCHH `Item` override, plus the **client-override | _underscore/Model/Nychh/Item.php, _underscore/Model/Nychh/TransferOrder.php, _underscore/Model/Nychh/TransferOrderStage.php, _underscore/Model/Client/TransferOrder.php, dbchanges2/Client_Nychh/2026-08-27a - TransferOrderCustomFieldWritePermission.sql, dbchanges2/Client_Nychh/2026-08-27b - TransferOrderStageStatusIdentifier.sql |
8
- | [NYC Health & Hospitals](profile.md) | 2.0 | NYC Health & Hospitals (NYCHH) is a TOGA 2.0 client on the `_underscore` platform, prod schema `Client_Nychh`. | dbchanges2/Client_Nychh/2026-08-18 - InventoryUnitsItemColumns.sql, dbchanges2/Client_Nychh/2026-08-24 - FixInventoryGroupingsUnitsTopologyOverrideIds.sql, dbchanges2/Client_Nychh/2026-08-27a - TransferOrderCustomFieldWritePermission.sql, dbchanges2/Client_Nychh/2026-08-27b - TransferOrderStageStatusIdentifier.sql |
8
+ | [NYC Health & Hospitals](profile.md) | 2.0 | NYC Health & Hospitals (NYCHH) is a TOGA 2.0 client on the `_underscore` platform, prod schema `Client_Nychh`. | dbchanges2/Client_Nychh/2026-08-18 - InventoryUnitsItemColumns.sql, dbchanges2/Client_Nychh/2026-08-24 - FixInventoryGroupingsUnitsTopologyOverrideIds.sql, dbchanges2/Client_Nychh/2026-08-27a - TransferOrderCustomFieldWritePermission.sql, dbchanges2/Client_Nychh/2026-08-27b - TransferOrderStageStatusIdentifier.sql, dbchanges2/Client_Nychh/2026-08-28a - TransferOrdersTableView.sql, dbchanges2/Client_Nychh/2026-08-28b - TransferOrdersNavigationEnable.sql |
@@ -6,7 +6,7 @@ project: _Underscore
6
6
  client: nychh
7
7
  type: client-feature
8
8
  status: active
9
- updated: 2026-08-26
9
+ updated: 2026-08-28
10
10
  owners: [apeterson, bala]
11
11
  files:
12
12
  - _underscore/Model/Client/SalesOrder.php
@@ -70,10 +70,19 @@ the **upstream** table.
70
70
  safe **only** because NYCHH's upstream bridge is coincidentally 1:1 (823 rows / 823 distinct sales
71
71
  orders). Copying that join into a shared single-record fetch breaks Compass (up to 6,440 POs on one
72
72
  order), Compass Canada (empty upstream bridge) and Prudential (1,868 of 26,843 upstream).
73
+ - **The transfer-order items table inherits the same blank.** `TransferOrderItems` has no
74
+ line-level PO, so that column binds the **parent order's** `purchaseOrder.number` and repeats on
75
+ every row — and for NYCHH it resolves NULL, because their PO links are upstream and
76
+ `TransferOrders.purchaseOrderId` is not populated for this tenant. The column is deliberately left
77
+ visible in the Core surface (neutral default; other tenants do populate it). See
78
+ [Transfer Orders page](../../../2.0/apps/toga25-supply/features/transfer-orders-page.md).
73
79
  - Do not "fix" this by adding downstream rows. The direction is correct for NYCHH's business model;
74
80
  the shared field is what was incomplete.
75
81
 
76
82
  ## Change history
83
+ - 2026-08-28 — Noted that the new Transfer Orders items table shows the **order-level** PO
84
+ (`TransferOrderItems` has no line-level PO), so it repeats per row and resolves **NULL for NYCHH**
85
+ for the same upstream-direction reason — left visible in Core as the neutral default. (apeterson)
77
86
  - 2026-08-26 — Closed the open `_purchaseOrders` gap: fixed in the **base** field as a
78
87
  downstream-then-upstream `COALESCE` (not a NYCHH override), taking NYCHH from 64 to **819 of 819**
79
88
  orders with a PO and changing no existing value; currently on `_beta`, not `_production`. Refined
@@ -15,13 +15,15 @@ project: _Underscore
15
15
  client: nychh
16
16
  type: profile
17
17
  status: active
18
- updated: 2026-08-27
18
+ updated: 2026-08-28
19
19
  owners: ["jcardinal", "apeterson", "bala"]
20
20
  files:
21
21
  - dbchanges2/Client_Nychh/2026-08-18 - InventoryUnitsItemColumns.sql
22
22
  - dbchanges2/Client_Nychh/2026-08-24 - FixInventoryGroupingsUnitsTopologyOverrideIds.sql
23
23
  - dbchanges2/Client_Nychh/2026-08-27a - TransferOrderCustomFieldWritePermission.sql
24
24
  - dbchanges2/Client_Nychh/2026-08-27b - TransferOrderStageStatusIdentifier.sql
25
+ - dbchanges2/Client_Nychh/2026-08-28a - TransferOrdersTableView.sql
26
+ - dbchanges2/Client_Nychh/2026-08-28b - TransferOrdersNavigationEnable.sql
25
27
  related:
26
28
  - ../../2.0/apps/_underscore/features/tracking-number-bridges.md
27
29
  - ../../2.0/apps/_underscore/features/tableview-joins.md
@@ -29,6 +31,7 @@ related:
29
31
  - ./features/netsuite-transfer-order-import.md
30
32
  - ./features/transfer-order-inventory-quantities.md
31
33
  - ../../2.0/apps/_underscore/features/sales-order-purchase-order-bridge-direction.md
34
+ - ../../2.0/apps/toga25-supply/features/transfer-orders-page.md
32
35
  ---
33
36
 
34
37
  ## Summary
@@ -61,6 +64,15 @@ table views. Client-specific DB change-sets live in `dbchanges2/Client_Nychh/`.
61
64
  arrive as sales orders; the 1.0 importer routes them by the `custbody_stocking_order` flag (not the
62
65
  dollar amount), bridges the PO, and resolves origin/destination locations. See
63
66
  [NYCHH NetSuite → TransferOrders import](./features/netsuite-transfer-order-import.md).
67
+ - **Transfer Orders is an NYCHH-only screen (2026-08-28, local only).** NYCHH is the first — and
68
+ today the only — tenant with a `transfer-orders` TableView (`Client_Nychh/2026-08-28a`, which also
69
+ seeds the ACL chain for record 351 that the Status column silently depends on) and the one
70
+ `SurfaceOverrides` row that reveals the nav item (`2026-08-28b`, client-wide, matching how this
71
+ tenant already grants Sales Orders and Inventory — NYCHH does not scope navigation by role). The
72
+ Core surfaces and the stage colour tokens are **shared/neutral**, hidden for every other client
73
+ until they opt in. Not yet run on sandbox-client or production; **beta is blocked** because it
74
+ lacks the `TransferOrderStages` table. See
75
+ [Transfer Orders page](../../2.0/apps/toga25-supply/features/transfer-orders-page.md).
64
76
  - **Two-branch inventory quantities + TransferOrder V2 enablement** — NYCHH-only on-hand/available/
65
77
  fulfilled/backordered model on `_Model_Nychh_Item`, plus the client-override models + ACL rows that
66
78
  let a NetSuite TransferOrder POST succeed. See
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toga-ai",
3
- "version": "1.0.684",
3
+ "version": "1.0.685",
4
4
  "description": "TOGA Technology Team Claude Knowledge System — shared AI coding harness with skills, knowledge base CLI, and project installer for Claude Code.",
5
5
  "keywords": [
6
6
  "claude",