Warehouse 0.5.2: Quantities and prices accept a comma or a dot
Warehouse 0.5.2 makes the quantity, price and sum fields of the warehouse forms accept both a comma and a dot as the decimal mark, without the browser rounding or dropping what was typed.
The fields now use PhoenixKit’s shared decimal input instead of the browser’s number control, on goods receipts, goods issues, internal orders, supplier orders, transfers, the stock page, the stocktake count sheet and the minimum and maximum of the list filters. They also keep their narrow width instead of stretching across the table cell.
Internal order quantities are now stored as numbers and never below zero. Before, typed text such as 2,5 or abc was stored as typed, and a negative required quantity could turn into a goods issue that added stock when posted.
Upgrading
Warehouse 0.5.2 needs PhoenixKit 2.26.1 or later, the first release with the shared decimal input.
Full release notes: Warehouse 0.5.2
0.5.2 · 16 September 2026
Changed
- Quantity, price and sum inputs use core’s
<.decimal_input>(#32) — both a comma and a dot work, and nothing is rounded or swallowed by the browser’s number control. The comma-tolerant parsers (StockLedger,CostProposals,ColumnConfig, the inventory browser) now delegate toPhoenixKit.Utils.Number.parse_decimal/2. - Core floor raised to phoenix_kit 2.26.1, the first release with the
decimal input and exponent-free
parse_decimal/2.
Fixed
- Internal order quantities are stored normalised and clamped to zero —
typed text (
"2,5","abc") is no longer stored as typed, and a negative required quantity can no longer turn into a goods issue that adds stock when posted. - Decimal inputs keep their width — widths moved to
wrapper_class, because the component’s ownw-fulloverrodew-20/w-24and stretched the controls across their table cells.
Warehouse 0.5.2. Install or update: {:phoenix_kit_warehouse, "~> 0.5"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.