Docs /Reference

How Costs Roll Up

Where each cost is captured and how it flows into season, animal, and farm P&L.

How Costs Roll Up

A farm has many cost sources — inputs, labor, equipment, services, depreciation. The platform captures them in different places (transactions, inventory usage, worker payments, etc.) and then rolls them up into the totals you see on the dashboard, season P&L, and reports.

This page is the mental model. Once you understand the rollup, every cost question has an obvious answer.

The five cost sources

SourceWhere loggedRolls into
Direct expenseTransactions (type = expense)Farm P&L, season P&L (if linked to season).
Inventory usageInventory usage form, or auto from treatmentsFarm P&L (cost of consumed inputs), season P&L (if linked to season).
Worker paymentsWorker payments / TransactionsFarm P&L, season P&L (if linked to season), worker cost report.
Equipment maintenanceMaintenance logFarm P&L, equipment lifetime cost.
Animal acquisitionAcquisition cost on animalPer-animal cost basis, season P&L (if linked).

That's the entire universe of cost on the platform.

What "linked to season" means

When you log a cost, you usually have an optional Season field. Setting it tells the platform "this cost belongs to that cycle's P&L."

A cost without a season link is still counted in the farm-wide totals but doesn't appear in any season's P&L. Useful for overhead (electricity, monthly rent) that isn't traceable to a specific cycle.

Season P&L walk-through

Take a mango season from start to close:

StepSourceCost flows to
1. Buy 50 kg of NPK fertilizer ($200) from a supplier.Inventory purchase → transaction.Farm P&L. The full $200 is an expense the day you buy.
2. Use 20 kg of that NPK on this season's vegetative stage.Inventory usage with season link.Season P&L gains the cost portion of the 20 kg — $200 × (20/50) = $80. Inventory balance drops by 20 kg.
3. Worker logs 8 hours on this season's weeding tasks @ $5/hr.Harvest batch labor or task labor.Season P&L gains $40 in labor cost.
4. Pay the worker $200 covering this period.Worker payment with season link.Farm cash-out; season P&L gains the linked portion (often the same $40 attribution to avoid double-counting).
5. Tractor service ($150) during the season.Maintenance log with cost.Farm P&L. Not linked to a season unless you explicitly attribute.
6. Sell 4 tonnes at $400 / tonne.Sale + payment.Season revenue +$1,600.

Season P&L at close:

Revenue:    $1,600
Costs:        $120  (fertilizer used + labor)
─────────────────
Net:        $1,480 (season only)

The tractor service didn't show up in this season's P&L because it wasn't linked. It's still in the farm's P&L for the period.

Avoiding double-counting

The trickiest part of cost rollup is not counting the same dollar twice. The platform handles most of it automatically:

  • Inventory purchase → expense at purchase time. The full cost hits the farm P&L on the purchase date.
  • Inventory usage → cost shifts to season. When you log usage with a season link, the platform moves the cost portion from "unallocated farm overhead" to that season's P&L.
  • Worker payment → expense when paid. The cash-out happens at payment. Season-attributed labor hours are tracked separately to attribute work performed during the season.

If you ever see a season's costs look too high, check whether you've double-linked — same expense both linked to the season directly AND covered by linked inventory usage. The activity log shows the chain.

Allocation strategies

For shared costs (electricity, water, rent) that span multiple seasons, choose one:

Option A — proportional by acres

Allocate based on each season's share of total acres.

Option B — proportional by duration

Allocate based on each season's days within the overhead period.

Option C — manual

Pick a split and log separate transactions per season.

Option D — skip

Leave overhead as farm-wide and only run season P&L for direct costs. Simpler, less precise.

Set the default under Settings → Allocation.

Where you see rollups

SurfaceShows
Dashboard → Cashflow cardTotal income vs. expense for active farm, period selectable.
Season detail → Performance cardRevenue, costs, net for that season.
Reports → P&LFull P&L by farm, season, or period.
Reports → Cost per AcreTotal costs / area, by season.
Animal detail → P&L cardPer-animal cost basis vs. realized revenue at disposition.
Worker → Cost summaryTotal paid + outstanding by period.

Common questions

"Why is this season's expense higher than I expected?"

  1. Open the season's Activity tab.
  2. Filter to financial actions.
  3. Look for unexpected line items — often a misattributed transaction or duplicate usage entry.

"Why doesn't my inventory cost show on the season?"

  1. The usage entry probably wasn't linked to the season.
  2. Edit the usage and set the season link.

"Where did this transaction go?"

  1. Open the transaction.
  2. Check the Season field. If empty, it's farm-level only.

"Why does the farm P&L not match the sum of season P&Ls?"

This is expected when you have:

  • Overhead costs not allocated to seasons.
  • Inventory purchased but not yet used (the cost is in farm P&L, no usage has shifted it yet).
  • Equipment maintenance.
  • Pre-season or post-season costs.

The difference is your unallocated farm overhead — useful number in its own right.

See also