cropdata
Crop list configuration: display order, crop type and label overrides per product code.
Table factsheetagri_db
- Written by
Repo.insertCropData(DataSetupViewModel,UnitDataSetupViewModel,DataUtil.getCropData)
- Read by
Repo.getCropData/createProductSKU
- Filled from
GET ie-registration/assets/json/inventory/crops-list.json- Source
- data/src/main/java/org/mindtree/app/agricultor/data/entity/CropData.kt
Columns
| Column | Type | Null | Key | Meaning |
|---|---|---|---|---|
id | INTEGER | No | PK | Server id. Null or 0 until the row is synced. Autoincrement. |
productCode | TEXT | Yes | product.productCode this config applies to. | |
sequenceNo | INTEGER | Yes | Display order. | |
cropType | TEXT | Yes | Crop group used to filter the crop picker, e.g. Agriculture | Horticulture | Polycropping | PMDS | RDS | A Grade. | |
labelList | TEXT | Yes | JSON list of per-language labels. |
Notes
- Possible bug · unverified inserted with IGNORE on conflict, so updated crop config may not replace old rows.