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
Open positionIllustrative
CommodityBought MTSold MTNetAvg USD/MT
Red lentils4,2501,8002,450 long612
Yellow peas3,0005002,500 long338
Kabuli chickpeas1,2001,200Flat905
Green mung600850250 short1,040
Net position by commodity, built from contract and sale events.
Shipments at portIllustrative
KF-S-112
Red lentils, 2,500 MT
11 of 14 free days used
3 days left
KF-S-115
Yellow peas, 3,000 MT
3 of 14 free days used
11 days left
KF-S-118
Kabuli chickpeas, 1,200 MT
On water, arrives 28 Oct
Not started
Free-days countdown per shipment, flagged as it runs short.

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
Journal JE-20461Source: lot L-2291 received
AccountDebit PKRCredit PKR
1400 Inventory, red lentils466,809,900—
2100 Trade payables, supplier—410,962,500
2150 Accrued freight and clearing—55,847,400
Balanced466,809,900466,809,900
Each journal carries a link back to the record that created it. Account codes are examples.
Trade margin by commodity, this quarterIllustrative
Red lentils
PKR 61.2M
Yellow peas
PKR 35.4M
Kabuli chickpeas
PKR 25.1M
Green mung
PKR 8.6M
Margin against final landed cost, before FX.

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

  1. 1
    Contract

    Opens the position and the obligation to pay.

  2. 2
    Shipment

    Records the BL and starts the cost build.

  3. 3
    Lot

    Received weight fixes the final landed cost.

  4. 4
    Sale

    Closes the position and books the margin.

  5. 5
    Payment

    Settles the ledger and captures FX.

  6. 6
    Journal

    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.