feat(inventory): month/year harvest date picker (schema v3)
Replace the free-text harvest year with a themed month/year picker: a tappable field opens a green-styled dialog with month and year grids (navigable, paginated years), month optional. Lots now read e.g. "September 2021" or just "Year 2021". - schema v3: add nullable Lot.harvest_month (1..12) + migration + tests - repo/cubit propagate harvestMonth; localized month names (en/es) via slang
This commit is contained in:
parent
9e5c82184b
commit
5d4053157f
17 changed files with 3799 additions and 57 deletions
|
|
@ -47,6 +47,7 @@ class TranslationsEs extends Translations with BaseTranslations<AppLocale, Trans
|
|||
@override late final _Translations$germination$es germination = _Translations$germination$es._(_root);
|
||||
@override late final _Translations$editVariety$es editVariety = _Translations$editVariety$es._(_root);
|
||||
@override late final _Translations$addLot$es addLot = _Translations$addLot$es._(_root);
|
||||
@override late final _Translations$harvest$es harvest = _Translations$harvest$es._(_root);
|
||||
@override late final _Translations$lotType$es lotType = _Translations$lotType$es._(_root);
|
||||
@override late final _Translations$unit$es unit = _Translations$unit$es._(_root);
|
||||
}
|
||||
|
|
@ -163,11 +164,37 @@ class _Translations$addLot$es extends Translations$addLot$en {
|
|||
|
||||
// Translations
|
||||
@override String get title => 'Añadir lote';
|
||||
@override String get year => 'Año de cosecha';
|
||||
@override String get year => 'Fecha de cosecha';
|
||||
@override String get quantity => '¿Cuánta?';
|
||||
@override String get amount => 'Cantidad';
|
||||
}
|
||||
|
||||
// Path: harvest
|
||||
class _Translations$harvest$es extends Translations$harvest$en {
|
||||
_Translations$harvest$es._(TranslationsEs root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsEs _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get pickTitle => 'Seleccionar mes / año';
|
||||
@override String get anyMonth => 'Cualquier mes';
|
||||
@override String get noDate => 'Indicar fecha de cosecha';
|
||||
@override List<String> get monthNames => [
|
||||
'enero',
|
||||
'febrero',
|
||||
'marzo',
|
||||
'abril',
|
||||
'mayo',
|
||||
'junio',
|
||||
'julio',
|
||||
'agosto',
|
||||
'septiembre',
|
||||
'octubre',
|
||||
'noviembre',
|
||||
'diciembre',
|
||||
];
|
||||
}
|
||||
|
||||
// Path: lotType
|
||||
class _Translations$lotType$es extends Translations$lotType$en {
|
||||
_Translations$lotType$es._(TranslationsEs root) : this._root = root, super.internal(root);
|
||||
|
|
@ -494,9 +521,24 @@ extension on TranslationsEs {
|
|||
'editVariety.species' => 'Especie (del catálogo)',
|
||||
'editVariety.speciesHint' => 'Buscar una especie…',
|
||||
'addLot.title' => 'Añadir lote',
|
||||
'addLot.year' => 'Año de cosecha',
|
||||
'addLot.year' => 'Fecha de cosecha',
|
||||
'addLot.quantity' => '¿Cuánta?',
|
||||
'addLot.amount' => 'Cantidad',
|
||||
'harvest.pickTitle' => 'Seleccionar mes / año',
|
||||
'harvest.anyMonth' => 'Cualquier mes',
|
||||
'harvest.noDate' => 'Indicar fecha de cosecha',
|
||||
'harvest.monthNames.0' => 'enero',
|
||||
'harvest.monthNames.1' => 'febrero',
|
||||
'harvest.monthNames.2' => 'marzo',
|
||||
'harvest.monthNames.3' => 'abril',
|
||||
'harvest.monthNames.4' => 'mayo',
|
||||
'harvest.monthNames.5' => 'junio',
|
||||
'harvest.monthNames.6' => 'julio',
|
||||
'harvest.monthNames.7' => 'agosto',
|
||||
'harvest.monthNames.8' => 'septiembre',
|
||||
'harvest.monthNames.9' => 'octubre',
|
||||
'harvest.monthNames.10' => 'noviembre',
|
||||
'harvest.monthNames.11' => 'diciembre',
|
||||
'lotType.seed' => 'Semillas',
|
||||
'lotType.plant' => 'Plantel',
|
||||
'unit.aFew' => 'unas pocas',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue