Billing 0.16.0: Amounts with a comma or a dot, nothing rounded
Billing 0.16.0 lets staff type money amounts and rates with either a comma or a dot, and keeps exactly what they typed. “12,50” is now 12.50 instead of 12.
Decimal fields that take what you type
The tax rate in the settings, the exchange rate of a currency, the price of a subscription type, payment and refund amounts on an invoice, and the unit price of an order line now use core’s decimal field. A comma and a dot both work, nothing is rounded, and the browser no longer blocks a submit because the number does not fit its step or locale. Payments, refunds and order lines read amounts the same way, so “12,50” is recorded as 12.50.
Fixes
- A default tax rate outside 0 to 100 is refused with Tax rate must be between 0 and 100 instead of being saved, and the rest of the settings form keeps what was typed.
- A subscription type price that is not a number shows “is invalid” instead of crashing the page.
- The Name, Slug and Price labels of the subscription type form no longer show two required asterisks.
Upgrading
This release needs PhoenixKit ~> 2.26; an older core cannot compile it, so a site on core 2.0 to 2.25 updates core first. No migration and no configuration.
Full release notes: Billing 0.16.0
0.16.0 · 16 September 2026
Free-typed decimal form fields via core’s <.decimal_input> (PR #42).
Changed
- Requires
phoenix_kit ~> 2.26(was~> 2.0).<.decimal_input>andPhoenixKit.Utils.Number.parse_decimal/2first shipped in core 2.26.0 and the component is imported at compile time, so an older core cannot compile this release. Hosts on core 2.0–2.25 must upgrade core first. - Tax rate (settings), exchange rate (currencies), subscription type price,
invoice payment and refund amounts, and order line-item unit price now use
<.decimal_input>: a comma or a dot both work, nothing is rounded, and the browser no longer blocks a submit overstep/locale mismatches. record_payment/3,record_refund/3and the order form parse amounts withNumber.parse_decimal/2, so"12,50"is 12.50 instead of 12.
Fixed
- A default tax rate outside 0–100 is rejected with a flash instead of saved
(the browser’s
min/maxguard went away withtype="number"), and the rest of the submitted settings form stays as typed. - A garbage subscription type price shows “is invalid” instead of crashing the
LiveView (
Decimal.new/1raised). - The subscription type form’s Name, Slug and Price labels showed two required asterisks.
Billing 0.16.0. Install or update: {:phoenix_kit_billing, "~> 0.16"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.