Commit 4b2d805
Fill remesa Descripción from the picked product, and seed new remesas from the solicitud.
Picking a product in "Producto / mercancía" only ever set mercancia_codigo —
Descripción stayed whatever it was before, even though the search result
already carries the product's name (catalogo.repo.ts's buscarProductos()
returns it as `nombre`). Now onSelect fills both, and Descripción remains a
plain editable input so it can still be corrected by hand.
"Agregar remesa" also built a blank remesa instead of reusing the solicitud's
own captured product/naturaleza/empaque/peso/terceros — the same defaults
the first remesa already gets via remesaDesde(solicitud). Every remesa added
now starts from those same solicitud defaults instead of empty fields.
Verified live: added a second remesa (inherited "Aceite de palma crudo CPO" /
000811 from the solicitud), then picked a different product and confirmed
Descripción updated to that product's own name while the first remesa was
untouched, and that the field still accepts manual edits afterward.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7d299c9 commit 4b2d805
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
329 | 333 | | |
330 | 334 | | |
331 | 335 | | |
| |||
379 | 383 | | |
380 | 384 | | |
381 | 385 | | |
382 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
383 | 390 | | |
384 | 391 | | |
385 | 392 | | |
| |||
0 commit comments