wms.inventory¶
The central inventory module. It covers bale review and confirmation, lot origin and the lot ledger, the physical count report, the warehouse map (grid, locations, occupancy) and source reconciliation. A confirmed count and a warehouse location affect each other, so they have to be read together.
42 endpoints - system wms - module gate applies
What this module covers - Inventory lots, lot ledger, count snapshots, warehouse grid and locations, transloads, load plans, companies.
once a bale review is confirmed, the follow-up APIs - update-outbound, use-shipper-inbound - are hard to walk back.
Endpoints¶
| Method | Path | What it does | Evidence |
|---|---|---|---|
| POST | /wms/inventory/bale-adjustments/apply |
Apply a bale quantity adjustment | handler wmsInventoryAssertSpareBaleOffice() · calls final-loading-review-runtime.js |
| GET | /wms/inventory/bale-adjustments |
List the bale adjustments | handler wmsInventoryBaleQueue() · tables T_COMPANY, T_TRANSLOAD |
| POST | /wms/inventory/bale-reviews/apply-weight |
Apply a weight to a bale review | handler wmsInventoryAssertSpareBaleOffice() · calls final-loading-review-runtime.js |
| POST | /wms/inventory/bale-reviews/bulk-confirm |
Confirm several bale reviews at once | handler wmsInventoryAssertSpareBaleOffice() |
| POST | /wms/inventory/bale-reviews/confirm |
Confirm a bale review | handler wmsInventoryAssertSpareBaleOffice() · calls final-loading-review-runtime.js |
| GET | /wms/inventory/bale-reviews |
List the bale reviews | handler wmsInventoryBaleReviewQueue() · tables T_COMPANY, T_TRANSLOAD |
| POST | /wms/inventory/bale-reviews/reconcile-extra |
Reconcile the surplus on a bale review | handler wmsInventoryAssertSpareBaleOffice() · calls final-loading-review-runtime.js |
| POST | /wms/inventory/bale-reviews/reopen |
Reopen a confirmed bale review | handler wmsInventoryAssertSpareBaleOffice() · calls final-loading-review-runtime.js |
| POST | /wms/inventory/bale-reviews/update-outbound |
Update the outbound from the bale review result | handler wmsInventoryAssertSpareBaleOffice() · calls final-loading-review-runtime.js |
| POST | /wms/inventory/bale-reviews/use-shipper-inbound |
Apply the shipper inbound quantity to a bale review | handler wmsInventoryAssertSpareBaleOffice() · calls final-loading-review-runtime.js |
| GET | /wms/inventory/bale-sources |
List bale sources (source lots) | handler wmsInventoryBaleSources() |
| POST | /wms/inventory/bale-sources/manual |
Register a bale source manually | handler wmsInventoryAssertSpareBaleOffice() · calls bale-inventory.php |
| POST | /wms/inventory/bale-sources/(?P<lotUuid>[0-9a-fA-F-]{36})/commodity-correction |
Correct the commodity of a lot | handler wmsInventoryAssertSpareBaleOffice() |
| POST | /wms/inventory/bale-sources/(?P<lotUuid>[0-9a-fA-F-]{36})/count-check |
Verify the quantity of a lot | handler wmsInventoryAssertSpareBaleOffice() |
| GET | /wms/inventory/bale-sources/(?P<lotUuid>[0-9a-fA-F-]{36})/ledger |
Read the ledger history of a lot | handler wmsInventoryBaleLedger() · tables T_INVENTORY_LOT_LEDGER, T_TRANSLOAD |
| POST | /wms/inventory/bale-sources/(?P<lotUuid>[0-9a-fA-F-]{36})/original-count-correction |
Correct the original count of a lot | handler wmsInventoryAssertSpareBaleOffice() |
| POST | /wms/inventory/bale-sources/(?P<lotUuid>[0-9a-fA-F-]{36})/relocate |
Move the position of a bale | handler wmsInventoryBaleWrite() |
| POST | /wms/inventory/bale-sources/(?P<lotUuid>[0-9a-fA-F-]{36})/void |
Void a bale source | handler wmsInventoryBaleWrite() |
| GET | /wms/inventory/lots |
List inventory lots | handler wmsInventoryQueryHandle() · calls api_catalog.php |
| POST | /wms/inventory/lots/(?P<id>\d+)/adjust |
Adjust the quantity of an inventory lot | handler wmsInventoryWrite() |
| GET | /wms/inventory/lots/(?P<id>\d+) |
Read an inventory lot in detail | handler wmsInventoryQueryHandle() |
| PATCH | /wms/inventory/lots/(?P<id>\d+) |
Edit an inventory lot | handler wmsInventoryWrite() |
| POST | /wms/inventory/physical-report/draft |
Create a draft of the physical count report | handler physical_inventory_save_draft() · tables T_INVENTORY_LOT_SNAPSHOT · calls inventory-report.php |
| POST | /wms/inventory/physical-report/finalize |
Confirm the physical count report | handler physical_inventory_save_draft() · tables T_INVENTORY_LOT_SNAPSHOT · calls inventory-report.php |
| GET | /wms/inventory/physical-report |
Read the physical count report | handler physical_inventory_report() |
| POST | /wms/inventory/physical-report/reopen |
Reopen a confirmed physical count report | handler physical_inventory_reopen() · tables T_INVENTORY_LOT_SNAPSHOT · calls inventory-report.php |
| GET | /wms/inventory/reload-source-lots |
List the source lots eligible for reloading | handler wmsInventoryWarehouseMapReloadSourceLots() |
| POST | /wms/inventory/report/email |
Send the inventory report by email | handler wmsInventorySendReportEmail() · calls inventory-report.php |
| GET | /wms/inventory/report |
Read the inventory report | handler inventory_report() · tables T_COMPANY, T_LOADING_PLANNER, T_SCALE_TICKET +1 more |
| POST | /wms/inventory/source-reconciliation/mutate |
Apply the source reconciliation result | handled by an inline closure in the route table · calls source-reconciliation-runtime.js |
| POST | /wms/inventory/source-reconciliation/preview |
Preview the source reconciliation - calculates the difference | handled by an inline closure in the route table · calls source-reconciliation-runtime.js |
| GET | /wms/inventory/source-reconciliation/sources |
List the sources to reconcile | handler wmsSourceReconciliationDirectory() · tables T_COMPANY, T_INVENTORY_LOT, T_INVENTORY_LOT_LEDGER +1 more · calls source-reconciliation-runtime.js |
| POST | /wms/inventory/warehouse-map/force-vacant |
Force a warehouse position to vacant | handler wmsInventoryBaleWrite() · calls warehouse-map.php |
| GET | /wms/inventory/warehouse-map/location-options |
Read the warehouse position options | handler wmsInventoryWarehouseMapLocationOptions() · tables T_WAREHOUSE_LOCATION · calls appointment.php, inbound-loader.php |
| GET | /wms/inventory/warehouse-map/locations |
List warehouse positions | handler wmsInventoryWarehouseMapLocations() |
| POST | /wms/inventory/warehouse-map/markers |
Register a warehouse map marker | handler wmsInventoryBaleWrite() · calls warehouse-map.php |
| PATCH/DELETE | /wms/inventory/warehouse-map/markers/(?P<id>[0-9]+) |
Edit or delete a warehouse map marker | handler wmsInventoryBaleWrite() |
| PATCH/DELETE | /wms/inventory/warehouse-map/markers/(?P<id>[0-9]+)/visual-footprint |
Edit or delete the visual footprint of a marker | handler wmsInventoryBaleWrite() |
| GET | /wms/inventory/warehouse-map/state |
Read the current state of the warehouse map (grid, positions) | handler wmsInventoryWarehouseGridState() · tables T_WAREHOUSE_GRID, T_WAREHOUSE_LOCATION · calls warehouse-map.php |
| GET | /wms/inventory/warehouse-map/state/refresh |
Force a refresh of the warehouse map state | handler wmsInventoryWarehouseGridRefreshState() · calls warehouse-map.php |
| PATCH/DELETE | /wms/inventory/warehouse-map/visual-footprint |
Edit or delete a visual footprint | handler wmsInventoryBaleWrite() · calls warehouse-map.php |
| GET | /wms/storage/by-company |
Read the storage position per company | handler storage_by_company() · tables T_BOOKING, T_COMPANY, T_SCALE_TICKET +1 more |
Tables this module reads¶
T_TRANSLOAD (6x) · T_COMPANY (5x) · T_INVENTORY_LOT_SNAPSHOT (3x) · T_INVENTORY_LOT_LEDGER (2x) · T_SCALE_TICKET (2x) · T_WAREHOUSE_LOCATION (2x) · T_LOADING_PLANNER · T_INVENTORY_LOT · T_WAREHOUSE_GRID · T_BOOKING
The description is a summary read off the route path, the handler, the tables it reaches and the screens that call it. Nothing is guessed without evidence: where the handler has to be read, it says so. The full evidence is on each endpoint page.