hql287 / Manta

🎉 Flexible invoicing desktop app with beautiful & customizable templates.
https://www.getmanta.app
GNU Lesser General Public License v3.0
5.28k stars 478 forks source link

Quantity automatically rounded to whole number in templates #259

Closed hql287 closed 6 years ago

hql287 commented 6 years ago

Expected Behavior

The quantity should stay the same in all places, even when it's decimal.

Current Behavior

Even though the calculation is correct, when the quantity is decimal, it will be rounded to the nearest whole number when displaying in templates.

Steps to Reproduce (for bugs)

  1. Create a new invoice with at least one item has quantity as a decimal number (eg. 1.5)
  2. Save & Preview it, notice 1.5 would be rounded to 2 in all templates.

Your Environment

hql287 commented 6 years ago

Fixed with #260