Everything between the contract and the closing entry.
Khepflow has four working areas — Trade, Logistics, Finance and Analytics — that all write to the same record. What the trader enters is what the warehouse receives against and what the accountant posts.
Trade
Write contracts the way you actually deal, and let the position follow on its own.
- Spot, delayed delivery and delayed payment contracts
- Import and local origin as a flag on any contract, not a separate module
- Commodities are your own list — nothing is hardcoded to pulses
- Every change is an event; the position is the sum of them
| Commodity | Bought MT | Sold MT | Net | Avg USD/MT |
|---|---|---|---|---|
| Red lentils | 4,250 | 1,800 | 2,450 long | 612 |
| Yellow peas | 3,000 | 500 | 2,500 long | 338 |
| Kabuli chickpeas | 1,200 | 1,200 | Flat | 905 |
| Green mung | 600 | 850 | 250 short | 1,040 |
Logistics
Follow the goods from loading port to the warehouse floor, and catch the costs before they catch you.
- Shipments with legs, bills of lading and vessel dates
- One shipment received as several lots, across several warehouses
- BL weight against received weight, with the variance costed into the lot
- Demurrage and detention countdowns with urgency flags
- Landed cost recalculated as late charges arrive, marked provisional or final
Finance
Payments hit the counterparty’s account first and get allocated after — the way traders actually settle.
- Counterparty ledgers, obligations and payment allocation
- Payment terms from prepaid and cash against documents to DA 15, 30, 45 and 60, with due dates set from vessel arrival
- USD payments keep booked and paid rates; the difference posts as FX gain or loss
- Journals post from operations, held for approval when they don’t balance
- Chart of accounts, bank mapping and a trial balance that ties out
| Account | Debit PKR | Credit PKR |
|---|---|---|
| 1400 Inventory, red lentils | 466,809,900 | — |
| 2100 Trade payables, supplier | — | 410,962,500 |
| 2150 Accrued freight and clearing | — | 55,847,400 |
| Balanced | 466,809,900 | 466,809,900 |
Analytics
Answers come from the same records as the books, so the owner’s view and the auditor’s view agree.
- Trade P&L by contract, commodity and counterparty
- Weighted-average landed cost by lot and warehouse
- Receivables aging
How one record moves through the system
- 1Contract
Opens the position and the obligation to pay.
- 2Shipment
Records the BL and starts the cost build.
- 3Lot
Received weight fixes the final landed cost.
- 4Sale
Closes the position and books the margin.
- 5Payment
Settles the ledger and captures FX.
- 6Journal
Posted at each step, linked to its source.
Also included
- Documents
- BLs, invoices and contracts filed against the record they belong to.
- Directory
- Suppliers, buyers, brokers, banks and warehouses in one list.
- Approvals
- Maker and checker on payments and journals. Nobody approves their own entry.
- USD and PKR
- Contracts in dollars, books in rupees, the rate kept at every step.
- Bank mapping
- Accounts at Meezan, Alfalah, Bank of Punjab, Habib Metro, MCB and UBL Ameen mapped to the ledger.