Commit graph

8 commits

Author SHA1 Message Date
edc9d915e0
Merge pull request #1 from kbenestad/claude/fix-form-layout-P8uHa
Make base currency dynamic and reorganize line item layout
2026-05-13 16:27:32 +07:00
Claude
e1292822f8
FX rate memory per currency and fix item header layout
- Remember the last valid FX rate entered per currency in state.fxRateMemory;
  pre-fill it when staff picks the same currency on a new line.
- Move Remove button to top-right of item header (alongside label);
  Subtotal moves below the name input, right-aligned in its own row.

https://claude.ai/code/session_014uUwDBtG5y5FuWcy5zqVD1
2026-05-13 09:26:14 +00:00
Claude
9eccc0af8b
Fix period default dates shifting by one day in UTC+ timezones
toISOString() converts local midnight to UTC, producing the previous day
in any timezone east of UTC. Format dates using local getFullYear/Month/Date
instead.

https://claude.ai/code/session_014uUwDBtG5y5FuWcy5zqVD1
2026-05-13 09:20:35 +00:00
Claude
9d4533b7a1
Swap Vendor and Description fields in form and PDF output
Vendor moves to row 1 (alongside Date/Currency/FX rate) and Description
moves to row 2 (alongside Receipt/Amount), in both the UI and the PDF layout.

https://claude.ai/code/session_014uUwDBtG5y5FuWcy5zqVD1
2026-05-13 09:17:31 +00:00
Claude
09ceaaf360
Add selectable base currency to form header
Replace static base currency badge with a currency dropdown (makeCDD).
Changing the selection updates state.baseCurrency, re-renders all item/line
blocks so closures capture the new base, and recalculates totals. All
dynamic references to CFG['currency-base'] replaced with state.baseCurrency.

https://claude.ai/code/session_014uUwDBtG5y5FuWcy5zqVD1
2026-05-13 09:15:54 +00:00
Claude
d35429314d
Fix item name and FX rate fields not filling form width
- item-name: change flex:1 to width:100% since it's not in a flex container
- FX rate: add grow class to fgrp and set input width to 100% so it extends to the right edge

https://claude.ai/code/session_014uUwDBtG5y5FuWcy5zqVD1
2026-05-13 09:13:07 +00:00
8b823bba1f First iteration 2026-05-13 01:02:05 +07:00
b2105ae363 Initial commit 2026-05-12 23:46:34 +07:00