LedgerFlow
LedgerFlow is a business accounting and inventory system, and the LedgerFlow connector lets TAO work with supplier bills, customer invoices, stock, sales orders, forecasts and purchase orders, with a person approving every change.
What you can do
Illustrative examples of what you might ask TAO:
- "Show me the open bills from our suppliers."
- "Raise a draft invoice for Acme for 40 hours of consulting."
- "Which stock items are running low?"
- "Can we ship 15 of part X on sales order SO-00007? When could we promise 200?"
- "Draft a purchase order to our preferred vendor for the low items."
LedgerFlow has two money ledgers, and TAO keeps them apart:
| Ledger | What it means | Word TAO uses |
|---|---|---|
| Payable (money you owe) | A supplier billed you | Bill |
| Receivable (money owed to you) | You billed a customer | Customer invoice |
Stock and sales orders are a third area. A sales order commits stock. The money only appears later, as a customer invoice.
Before you connect
- A LedgerFlow tenant. A tenant is your company's own space inside LedgerFlow.
- A tenant token. This is a long secret code from LedgerFlow that starts
lftok_. It lets a program act on your LedgerFlow data. It is one static token for the whole tenant. It does not expire on its own and there is no refresh step. Every person using the tools shares it. - The tenant's web address. The service URL ends in
/api. If none is given, TAO falls back to a default development address,https://dev.ledgerflow.tytantech.app/api. Point it at your own tenant. - Permission to add a credential and set up tools. The code calls the LedgerFlow credential a Vault-backed Service Connection. The tool instances are created in Tool Studio, one per action. The product notes say no one is granted these tools automatically. An administrator decides which agents get them. Reach for your administrator if you cannot see LedgerFlow tools.
- Approval is human on purpose. Approving, rejecting, sending or receiving a purchase order, publishing a forecast, and putting a customer on credit hold are all things a person does inside LedgerFlow. TAO cannot do them.
The product code does not list any permission scopes for LedgerFlow.
Connect it
Get the token from LedgerFlow
Ask your LedgerFlow administrator for the tenant token and the tenant's web address.
Open Credentials
Go to Tools > Credentials and open Add Credential. This page needs the tools-credentials permission.
Choose Service Connection
Pick the Service Connection tab. Enter a clear name for the connection.
Fill in the two fields
Type the address in Service URL. Paste the token into API Key / Token. The token is shown once, so save it now. The username and password boxes below are optional and are not used by LedgerFlow.
Save, then link the tools
Save the credential. An administrator then points each LedgerFlow tool at it and makes the tools available to the right agents. The tool setting that holds this link is named
credential_ref.
Tools
Reads run straight away. Writes are queued and wait for a person to approve them. Three writes cannot be undone and are marked as irreversible. The tool names all start with ledgerflow_.
Payable: suppliers, bills and payments
| Tool name | What it does | Read or Write |
|---|---|---|
ledgerflow_list_vendors | Lists vendors. Can search. | Read |
ledgerflow_get_vendor | Gets one vendor by ID. | Read |
ledgerflow_list_purchase_orders | Lists purchase orders. Can search and filter by status. | Read |
ledgerflow_get_purchase_order | Gets one purchase order by ID or by its internal number. | Read |
ledgerflow_list_goods_receipts | Lists goods receipts and totals how much of a purchase order has arrived. | Read |
ledgerflow_list_bills | Lists supplier bills. | Read |
ledgerflow_get_bill | Gets one bill by ID, or by the vendor's printed invoice number. | Read |
ledgerflow_list_accounts | Lists the accounts a bill payment can come from. Check this before paying. | Read |
ledgerflow_create_vendor | Creates a vendor. | Write (needs approval) |
ledgerflow_create_bill | Creates a supplier bill. | Write (needs approval) |
ledgerflow_record_payment | Pays a bill. Needs the bank account to be named if the tenant has more than one. | Write (needs approval) |
Receivable: customers, invoices and products
| Tool name | What it does | Read or Write |
|---|---|---|
ledgerflow_list_customers | Lists customers you invoice. Matches by name. | Read |
ledgerflow_get_customer | Gets one customer by name or ID. | Read |
ledgerflow_list_customer_invoices | Lists customer invoices. Can filter by customer, status or invoice number. | Read |
ledgerflow_get_customer_invoice | Gets one customer invoice with its lines, by printed number or ID. | Read |
ledgerflow_list_products | Looks up bill rates. Service products carry the per-hour or per-unit rate. | Read |
ledgerflow_create_customer | Creates a customer. | Write (needs approval) |
ledgerflow_create_customer_invoice | Raises a draft customer invoice, one line per person or item. | Write (needs approval) |
ledgerflow_void_customer_invoice | Voids a customer invoice. LedgerFlow has no delete and no un-void. | Write (needs approval, irreversible) |
Inventory and sales orders
| Tool name | What it does | Read or Write |
|---|---|---|
ledgerflow_list_inventory_items | Lists stock items with on-hand, committed, on-order and available quantities. | Read |
ledgerflow_get_inventory_item | Gets one stock item, by its own ID or its product's ID. | Read |
ledgerflow_list_low_stock | Lists items LedgerFlow itself considers short against their reorder points. | Read |
ledgerflow_list_sales_orders | Lists sales orders. Can filter by status or order number. | Read |
ledgerflow_get_sales_order | Gets one sales order with each line's ordered, fulfilled and remaining quantity. | Read |
ledgerflow_list_inventory_receipts | Browses goods receipts page by page. | Read |
ledgerflow_get_inventory_receipt | Gets one goods receipt with its lines. | Read |
ledgerflow_list_inventory_adjustments | Lists the stock audit trail, with the reason and before and after levels. | Read |
ledgerflow_fulfill_sales_order | Allocates stock against an order's lines. | Write (needs approval) |
ledgerflow_confirm_sales_order | Moves an order out of Draft. | Write (needs approval) |
ledgerflow_create_sales_order | Raises a draft sales order for a customer. | Write (needs approval) |
ledgerflow_create_inventory_product | Creates a stocked part, the product and its stock record together. | Write (needs approval) |
ledgerflow_create_inventory_adjustment | Changes a stock item's quantity on hand. Takes a mode: increase, decrease or set to a counted number. | Write (needs approval) |
ledgerflow_cancel_sales_order | Cancels a sales order. There is no un-cancel. | Write (needs approval, irreversible) |
ledgerflow_void_inventory_receipt | Voids a goods receipt. There is no un-void. | Write (needs approval, irreversible) |
Planning and purchasing
| Tool name | What it does | Read or Write |
|---|---|---|
ledgerflow_list_vendor_items | Lists the supplier catalogue: which vendors supply which items, lead times, prices and minimum order sizes. | Read |
ledgerflow_list_forecast_sets | Lists forecast sets, newest first. | Read |
ledgerflow_get_item_forecasts | Reads forecast quantities by item and period. | Read |
ledgerflow_compare_forecasts | Compares two forecast sets, item by item and period by period. | Read |
ledgerflow_get_purchasing_settings | Reads the purchase order approval policy. | Read |
ledgerflow_get_planning_settings | Reads the forecast display defaults. | Read |
ledgerflow_create_purchase_order | Creates a draft purchase order for one vendor. Sends and orders nothing. | Write (needs approval) |
ledgerflow_submit_purchase_order | Submits a draft or rejected purchase order for approval. A person approves it in LedgerFlow. | Write (needs approval) |
ledgerflow_create_forecast_set | Creates an empty forecast set. | Write (needs approval) |
ledgerflow_put_forecast_lines | Loads up to 5,000 forecast lines into a set per call. | Write (needs approval) |
Forecast quality, availability and credit
| Tool name | What it does | Read or Write |
|---|---|---|
ledgerflow_get_forecast_accuracy | Scores a forecast set against actual demand, giving WAPE and bias. | Read |
ledgerflow_get_forecast_set | Reads one forecast set with its publish-approval state. | Read |
ledgerflow_list_forecast_set_events | Shows a forecast set's workflow history. | Read |
ledgerflow_get_item_atp | Shows available-to-promise for one item, period by period. | Read |
ledgerflow_get_promise_date | Finds the earliest date a quantity of an item could be promised. Reserves nothing. | Read |
ledgerflow_list_atp | Shows available-to-promise for up to 200 items at once. | Read |
ledgerflow_list_customer_segments | Lists customer segments such as channel or market. | Read |
ledgerflow_list_customer_credit_events | Shows a customer's credit hold, release and auto-block history. | Read |
ledgerflow_get_sales_settings | Reads the credit control mode: Off, Warn or Block. | Read |
ledgerflow_get_sales_order_settings | Reads the sales order approval policy. | Read |
ledgerflow_submit_forecast_set | Submits a forecast set for publish approval. It stays not current until a person publishes it. | Write (needs approval) |
ledgerflow_submit_sales_order | Submits a draft sales order for approval. A person approves it. | Write (needs approval) |
Total: 56 tools, 37 reads and 19 writes. Available-to-promise means the stock you could still promise to a customer after existing orders and expected supply. WAPE is a standard forecast error measure, and bias shows whether forecasts run high or low.
Limits and good to know
- Names keep the ledgers apart. Older tools named
ledgerflow_list_invoicesandledgerflow_get_invoiceread supplier bills, so they were renamedledgerflow_list_billsandledgerflow_get_bill. The old names were retired, not reused, so they cannot be confused with customer invoices. - Invoices are voided, never deleted or edited. LedgerFlow does not allow deleting a customer invoice. A void changes only the status. The total and balance still show their old numbers, so any report must check the status, not the balance. To correct an invoice, void it and raise a new one. There is no tool to edit an invoice or a bill, because LedgerFlow's update replaces the whole document and can silently wipe lines.
- Fulfilling checks the limit first. LedgerFlow silently caps an over-allocation and still says success. TAO reads the order first and refuses a quantity above the remaining amount. It reports the amount actually applied, not the amount asked for.
- Cancel and void confirm a value. Cancelling a sales order needs the order ID and its order number. Voiding a goods receipt needs the receipt ID and its reference number. Both must match the record read from LedgerFlow. These two tools take an ID only, so a number cannot confirm itself.
- Cancelling a partly shipped order skews committed stock. The product notes say committed stock is kept as a running figure with no recalculation. Cancelling a partly fulfilled order double-subtracts, and it stays wrong. The tool description says so.
- Available stock ignores incoming orders. Quantity available is on hand minus committed. It does not count stock already on order.
- Adjustments are signed changes. LedgerFlow's own field is a change amount, not a counted total, so TAO uses a mode instead. An unknown reason is silently saved as Other, so the reason is checked first. A cost per unit can shift average cost. The audit trail cannot be edited or deleted.
- Pagination is capped. Searches that need matching in TAO fetch at most 4 pages of 50, or 200 rows.
- A few lookups are indirect. The vendor's printed invoice number cannot be searched on the server, so TAO matches it itself within the capped pages. Your own purchase order references are not stored in LedgerFlow, only its internal PO number.
- Purchase orders and forecasts stop at submit. An approver acts in LedgerFlow. A permission error on an approval-type step is expected.
- Not offered. Updating or deleting bills, deleting inventory items, deleting or reversing adjustments, receiving a purchase order, approving anything, and credit hold or release.
- Real data. The default address is a development tenant. Writes act on whichever tenant the token belongs to.