Home en de fr et

#2941 (PercentageField should be a QuantityField and return Percentage values)

State: Open (last update 2019-05-24 17:01:32.443154+00:00)
Created 2019-04-03 18:19:15+00:00 by Luc Saffre
Site: core.inner

lino.core.fields.PercentageField doesn't use lino.utils.quantities, it currently just a thin wrapper around `DecimalField`, and Lino adds a percent sign when printing it.  It would be more elegant if a PercentageField would store and yield lino.utils.quantities.Percentage values.

    Data migration of production sites might work out of the box, but this should be tested. PercentField is used for the discount field in invoices. (1 month, 3 weeks ago by Luc Saffre)