Fairhaul Freight Accruals
v0.1.0Fairhaul Freight Accruals: builds the month-end freight accrual from your shipments and carrier…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
fairhaul_info
Show this pack: pinned model, mode, caps, Auto opt-ins, and the allow/ask/block decision for every tool.
fairhaul_inspect_input
Show how a CSV, TSV, Excel, JSON or JSONL file under the root would be read: its format, which export it looks like, which of its columns map to this pack's columns, and what each column holds. Returns column names and shapes only, never cell values. Use it before a tool when a file comes straight from another system.
| Parameter | Type | Description |
|---|---|---|
path * | string | A CSV, TSV, Excel .xlsx, JSON or JSONL file under the root |
as | string | Source kind to read it as (default: every kind this agent declares, best match first) |
sheet | string | integer | Excel sheet name or 0-based index (default: first visible sheet) |
accruals_accrue Build the freight accrual
[ALLOW] List shipments shipped by period end with no invoice dated by period end, each with an estimate and its basis; totals by GL account and cost center; reversal and accuracy of the prior accrual.
| Parameter | Type | Description |
|---|---|---|
invoices * | string | Carrier invoices received (CSV, Excel, JSON or X12 210), with invoice dates |
period_end * | string | Last day of the period being closed, YYYY-MM-DD |
shipments * | string | Shipments under --root (TMS or ERP export): shipment id, carrier, ship date, quote, lane, cost center, GL account, status |
contract | string | Optional freight contract JSON used to estimate shipments with no quote |
prior | string | Optional last-period accrual (shipment_id, amount) to reverse and measure accuracy |
accruals_write_report Write the accrual detail and journal draft
[ALLOW] Write accruals-accrual.csv and .html (one row per shipment accrued, by cost center and the prior-period reversal) and journal-entry-draft.csv (debits by GL and cost center, one credit to accrued freight) into out_dir (default fairhaul-out/accruals). Returns the journal sha256.
| Parameter | Type | Description |
|---|---|---|
invoices * | string | Carrier invoices received (CSV, Excel, JSON or X12 210), with invoice dates |
period_end * | string | Last day of the period being closed, YYYY-MM-DD |
shipments * | string | Shipments under --root (TMS or ERP export): shipment id, carrier, ship date, quote, lane, cost center, GL account, status |
contract | string | Optional freight contract JSON used to estimate shipments with no quote |
liability_account | string | Account to credit (default accrued_freight) |
out_dir | string | Folder under --root for the files this writes (default fairhaul-out/accruals). |
prior | string | Optional last-period accrual (shipment_id, amount) to reverse and measure accuracy |
accruals_request_post Approve the journal for posting (one click)
[ASK] After one named human click, record in post-approvals.csv that the reviewed journal-entry-draft.csv (by sha256) may be posted. Fairhaul Freight Accruals never posts.
| Parameter | Type | Description |
|---|---|---|
journal * | string | Path of journal-entry-draft.csv written by accruals_write_report |
journal_sha256 * | string | sha256 returned by accruals_write_report for the journal file |
note | string | A short note kept with the record. |
out_dir | string | Folder under --root for the files this writes (default fairhaul-out/accruals). |
erp_post_journal Erp post journal
[BLOCK · move_money] Listed so agents can see it is refused. Fairhaul Freight Accruals never posts to your ledger; a person posts the reviewed entry.