Skip to content

Redesign/purchases flow#88

Open
NanezX wants to merge 63 commits into
mainfrom
redesign/purchases-flow
Open

Redesign/purchases flow#88
NanezX wants to merge 63 commits into
mainfrom
redesign/purchases-flow

Conversation

@NanezX

@NanezX NanezX commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

NanezX added 30 commits July 20, 2026 11:13
- Left column (flex-1): Document → Items → Discount → Payment Terms
- Right column (w-[22rem] sticky): Pricing Mode → Summary
- Mobile: stays fully stacked
- Currency toggles more compact with flex-wrap
- Removes max-w-2xl constraint on pricing description
Add step navigation for 1280px viewport compatibility:
- Step 1: Documento + Pricing mode (supplier, doc, date, rates, currency)
- Step 2: Artículos (item rows, search, add)
- Step 3: Pago (discount + payment terms)
- Step 4: Revisar (summary + items list + create button)
- Wizard header with step indicators (clickable completed steps)
- Back/Cancel + Next/Create navigation in sticky footer
- All state preserved across steps (go back without data loss)
…ayout

- Replace custom wizard nav with existing WizardHeader component (sales-consistent)
- Reduce container padding p-6→p-4, space-y-6→space-y-3
- Settlement currency starts empty (user must explicitly choose)
- Add disabled placeholder option to settlement dropdown
- Require settlementCurrency in step 0 validation
- Add contextual subtitle in steps 2-4 (supplier, currency, rates)
- Move draft badge to edit-mode subtitle
- Remove title prop from WizardHeader (saves ~50px vertical space)
- Replace back button with breadcrumb: Compras › Nueva compra
- Use tracking-[0.18em] uppercase style consistent with sales
- Add bare prop to PurchaseOrderDocumentPanel (renders without section wrapper)
- Merge document panel + pricing mode into one card (space-y-5, hr divider)
- Rename from 'Información del documento' to 'Información de la compra'
- Remove separate 'Modo de captura' card header
- Simplify base prices label: 'Base de precios' with inline toggles
…rning

- Drop settlement_rate_to_ves column (migration 0032)
- Remove from schema, Zod, draft types, remote, form payload
- Settlement currency auto-syncs from source currency (Opción A)
- Add warning when manual settlement differs from source currency
- Settlement validation removed from step 0 (always has value)
- Fix missing getSourceCurrencySymbol import
…back

- DocumentPanel bare mode: remove Tasa BCV and Tasa USDT fields
- Keep only Proveedor, Tipo, N° factura, Fecha, Observaciones in bare mode
- Parent form: add Tasa BCV + Tasa USDT after currency toggle buttons
- Flow: Base de precios → [USD][VES]... → Tasa BCV → Tasa USDT → Obligación
- Non-bare mode (standalone) unchanged
- Change 'Nota de Entrega' → 'Nota' to prevent line-wrapping in toggle
- Add max-w-40 to Tasa BCV and Tasa source inputs (rates are short numbers)
- Change transition-colors to transition-all duration-200
- Add shadow-sm and hover:bg-surface-container-higher on active tab
- Inactive tab now has bg-surface-container-higher/40 (was transparent)
- Both tabs now transition between visible backgrounds
- Add ease-out easing for smoother feel
- Create SegmentedToggle.svelte (sliding pill pattern from SaleStep2Toolbar)
- Replace inline doc-type toggle in PurchaseOrderDocumentPanel with component
- Export from UI barrel for reuse across the app
- Replace inline button group with SegmentedToggle sliding indicator
- Add  pricingModeOptions mapping currencies to options
- Reuses existing requestPricingModeChange handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant