Money in a Rails quote-to-invoice app: integer cents, one rounding rule, and a browser total that doesn't count
ruby
dev.to
Disclosure: this article was created with the help of AI. AI tools drafted it from my codebase and project notes, and I edited it and checked it against the code before publishing. I'm the founder of the app it describes. I'm building an estimate and invoice app for small trade businesses, crews of one to five people. The contractor writes an estimate, the customer opens a link, picks an option, signs and pays a deposit. Later the same numbers become an invoice. So one price shows up in a lot