feat(handover): one hand-over sheet replaces the separate sale/plantare doors
'Seeds changed hands' is now the single entry point on the variety detail (and per lot row): direction (gave/received), one-tap 'all of it' (default — the whole-plant/shrub case), optional partial quantity, counterparty, and reveal-on-tap money and return-promise sections that spawn the Sale/Plantare rows through recordHandover in one save. Zero-lot varieties still work (ledger rows only); several lots get a chip picker. The Sales/Plantares screens keep their own add buttons for off-app records — the sheets stay, demoted to secondary. i18n handover block in en/es/pt/ast; widget tests for the flow.
This commit is contained in:
parent
665e3e9452
commit
269fb59070
12 changed files with 849 additions and 152 deletions
|
|
@ -80,6 +80,7 @@ class TranslationsEs extends Translations with BaseTranslations<AppLocale, Trans
|
|||
@override late final _Translations$wot$es wot = _Translations$wot$es._(_root);
|
||||
@override late final _Translations$notifications$es notifications = _Translations$notifications$es._(_root);
|
||||
@override late final _Translations$plantare$es plantare = _Translations$plantare$es._(_root);
|
||||
@override late final _Translations$handover$es handover = _Translations$handover$es._(_root);
|
||||
@override late final _Translations$sale$es sale = _Translations$sale$es._(_root);
|
||||
}
|
||||
|
||||
|
|
@ -899,6 +900,26 @@ class _Translations$plantare$es extends Translations$plantare$en {
|
|||
@override String get removeConfirm => '¿Quitar este compromiso?';
|
||||
}
|
||||
|
||||
// Path: handover
|
||||
class _Translations$handover$es extends Translations$handover$en {
|
||||
_Translations$handover$es._(TranslationsEs root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsEs _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Di o recibí semillas';
|
||||
@override String get help => 'Un regalo, un trueque o una venta: apúntalo, con promesa de devolver semilla o sin ella.';
|
||||
@override String get iGave => 'Di semillas';
|
||||
@override String get iReceived => 'Recibí semillas';
|
||||
@override String get whichLot => '¿De qué lote?';
|
||||
@override String get howMuch => '¿Cuánto?';
|
||||
@override String get allOfIt => 'Todo';
|
||||
@override String get partOfIt => 'Una parte';
|
||||
@override String get paymentChip => 'Hubo dinero por medio';
|
||||
@override String get promiseGave => 'Me devolverán semilla';
|
||||
@override String get promiseReceived => 'Devolveré semilla';
|
||||
}
|
||||
|
||||
// Path: sale
|
||||
class _Translations$sale$es extends Translations$sale$en {
|
||||
_Translations$sale$es._(TranslationsEs root) : this._root = root, super.internal(root);
|
||||
|
|
@ -1744,6 +1765,17 @@ extension on TranslationsEs {
|
|||
'plantare.openSection' => 'Pendientes',
|
||||
'plantare.settledSection' => 'Hechos',
|
||||
'plantare.removeConfirm' => '¿Quitar este compromiso?',
|
||||
'handover.title' => 'Di o recibí semillas',
|
||||
'handover.help' => 'Un regalo, un trueque o una venta: apúntalo, con promesa de devolver semilla o sin ella.',
|
||||
'handover.iGave' => 'Di semillas',
|
||||
'handover.iReceived' => 'Recibí semillas',
|
||||
'handover.whichLot' => '¿De qué lote?',
|
||||
'handover.howMuch' => '¿Cuánto?',
|
||||
'handover.allOfIt' => 'Todo',
|
||||
'handover.partOfIt' => 'Una parte',
|
||||
'handover.paymentChip' => 'Hubo dinero por medio',
|
||||
'handover.promiseGave' => 'Me devolverán semilla',
|
||||
'handover.promiseReceived' => 'Devolveré semilla',
|
||||
'sale.title' => 'Ventas',
|
||||
'sale.help' => 'Registra semilla vendida o comprada — dinero, Ğ1 o cualquier moneda. Un modelo aparte del regalo y del Plantare. Nunca se cobra comisión por las semillas.',
|
||||
'sale.add' => 'Registrar venta',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue