Skip to content

POST /tms/transloads/load-to-load-reconcile

TMS > tms.transload

What it does

/tms/transloads/load-to-load-reconcile accepts POST and is declared in app/systems/TMS/transload/api_routes.php:260 as a path.

The route handler delegates to tmsTransloadApiLoadToLoadReconcile(). That function is the owner of this behaviour; the route entry is only dispatch.

Call chain:

  1. → tmsTransloadApiLoadToLoadReconcile() — app/systems/TMS/transload/form_mutation_api_helper.php:341
  2. ↳ tmsTransloadApiAssertFinalBaleReviewMutable() — app/systems/TMS/transload/form_mutation_api_helper.php:242
  3. ↳ wmsInventoryBaleReviewAssertFinalMetricsMutable() — app/systems/WMS/inventory/bale_review_helper.php:715

Who calls it

Called from:

  • public/assets/js/modules/shared/kj-table-options-master.js

A caller is the strongest available evidence of the intended use.

Input

No named input key is visible in the handler or its owner function. The endpoint either takes no parameters or reads them through a shared helper in app/shared/api/.

Output

Key
FINAL_COMMODITY_QUANTITY
FINAL_COMMODITY_WEIGHT

Success is { "data": …, "requestId": "…" }. Failure is { "error": { "code", "message" }, "requestId": "…" }.

SQL executed

SELECT ID,
SELECT INBOUND_FINAL_QUANTITY, INBOUND_FINAL_WEIGHT, FINAL_COMMODITY_QUANTITY, FINAL_COMMODITY_WEIGHT FROM T_TRANSLOAD WHERE CLIENT_ID = ? AND ID = ? AND DELETED_AT IS NULL LIMIT 1

Data

Tables reached from the owner function:

  • T_TRANSLOAD

Access

  • module-gated on tms.transload, so tenant module access applies

Validation and failure messages

  • Select at least 1 transload row.
  • Selected transload rows were not found.
  • No selected rows were updated.

These strings come from the owner function and are the messages a client can receive. They are also the cheapest way to tell a rejected request from a broken one.