FactsheetAssets & land
- Who uses it
- Cadre userHAN user (blocked)
- How you get here
- Farmer hub, Livestock tile. Needs a category (C4 and C5 are allowed).
- Tables
ie_asset, farmerassets- APIs
- 5 calls today, 3 App Service operations
- Offline
- Works offline; changes are queued for sync. No pull-to-refresh on this screen.
Screens
| Screen | What it does | Source |
|---|
| Livestock / Cattle | Enter a count per animal type. | app/src/main/java/org/platformcommons/urvi/view/livestockasset/LiveStockAssetFragment.kt |
What it captures
| Field | Type | Required | Validation | Options from |
|---|
| Count per animal type | Number | No | Whole number, max 3 digits (0-999). Every non-empty value must be numeric. | Fixed list in code: Adult cows, Other cows, Oxen/Bulls, Goat, Sheep, Adult buffaloes; labels from asset master |
Rules
Conditions from the code, rewritten as plain decision rules.
| When | Then |
|---|
| Asset master data is missing | The screen closes with "error fetching asset". |
| The user taps Done and no row is new or changed | Nothing is saved. |
| The user taps Done with changes | New rows are created first, then changed rows are patched. |
| A value is cleared | The existing record is not deleted. |
API contracts
Each call opens to its use case, headers, request and response bodies, and errors.
Behaviour notes
- There is no add button, refresh or authentication on this screen.
Improve in the rewrite
- Allow removing an animal type or setting it to zero explicitly.
- Drive the animal list from master data rather than code.