Screens
| Screen | What it does | Source |
|---|
| Crops (In Quintal) | List crops and enter quantities. | app/src/main/java/org/platformcommons/urvi/view/inventory/InventoryNewFragment.kt |
| Select Crop sheet | Pick crops by category and search; reused by Crop Plan/Actual and Certification. | app/src/main/java/org/platformcommons/urvi/view/inventory/SelectCropFragment.kt |
What it captures
| Field | Type | Required | Validation | Options from |
|---|
| Crops | Multi-select sheet | Yes (at least 1 new crop when adding) | Category dropdown plus text search; crops already added are pre-ticked. | Local ProductSKUMaster table (product categories excluding PRODUCT_MAJOR_TYPE.LEARNING) |
| Quantity (quintal) | Number | At least one value | Every value must be numeric. | User input |
Rules
Conditions from the code, rewritten as plain decision rules.
| When | Then |
|---|
| The user taps Done with no unsaved change or all values empty | Nothing is saved. |
| The user taps Done with valid changes | New rows are created and changed rows updated. |
| The user goes back with unsaved changes | A confirmation is shown. |
API contracts
Each call opens to its use case, headers, request and response bodies, and errors.
Improve in the rewrite
- Show inline validation per row.