GET /bms/ar-billing/commercial-trucking-occurrence¶
What it does¶
/bms/ar-billing/commercial-trucking-occurrence accepts GET and is declared in app/systems/BMS/ar-billing/api_routes.php:438 as a path.
The route handler delegates to bmsArBillingCommercialOccurrenceRead(). That function is the owner of
this behaviour; the route entry is only dispatch.
Call chain:
- →
bmsArBillingCommercialOccurrenceRead()—app/systems/BMS/ar-billing/commercial_occurrence_helper.php:63 - ↳
bmsArBillingCommercialOccurrenceSchemaReady()—app/systems/BMS/ar-billing/commercial_occurrence_helper.php:4
Who calls it¶
No literal caller path was found in frontend/, public/ or new-system/.
The endpoint may be called through a constructed path, a helper wrapper, or only by
an external client. Treat the route table and owner function as the authority.
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¶
The response is produced by a shared helper, so the key set is not visible at the route. Read the owner function to confirm the shape before writing a client.
SQL executed¶
SELECT O.*, HEX(O.UUID) AS UUID_HEX, HEX(O.EQUIPMENT_LOAD_UUID) AS EQUIPMENT_LOAD_UUID_HEX, HEX(O.COMMERCIAL_CHARGE_UUID) AS COMMERCIAL_CHARGE_UUID_HEX, HEX(O.RATE_SOURCE_UUID) AS RATE_SOURCE_UUID_HEX, HEX(O.PACKAGE_UUID) AS PACKAGE_UUID_HEX, HEX(O.RATE_VARIANT_UUID) AS RATE_VARIANT_UUID_HEX, HEX(O.BILLING_SETUP_UUID) AS BILLING_SETUP_UUID_HEX FROM T_EQUIPMENT_LOAD_COMMERCIAL_OCCURRENCE O WHERE O.CLIENT_ID=? AND O.EQUIPMENT_LOAD_ID=? AND O.SCOPE_TYPE='EQUIPMENT_LOAD' AND O.SERVICE_CODE=? AND O.COMMERCIAL_CHARGE_UUID=? AND O.OCCURRENCE_DISCRIMINATOR=? AND O.STATUS IN ('ACTIVE','NEEDS_REVIEW') AND O.DELETED_AT IS NULL LIMIT 1
Data¶
Tables reached from the owner function:
T_EQUIPMENT_LOAD_COMMERCIAL_OCCURRENCE
Access¶
- module-gated on
bms.transaction, so tenant module access applies