Requires schema changes and data migration for Percent field type behavior.
The issue reports incorrect storage and display of Percent field values, requiring both schema changes and data migration. The solution involves modifying how values are stored (as decimals) and displayed (with % symbol), potentially affecting many parts of the codebase. The main blocker is the complexity of safely migrating existing data.
The decimal value stored for the Percent field type should be the decimal it represents.
The value entered is the value stored and displayed just like Float.
The % symbol should also be displayed.
Requires a schema change, patch for all Percent fields and potentially a code refactor
Update Jan 2025: I have come across this again in Insights when implementing a calculated column. You have to 'fix' the percentage value by dividing by 100:
Output of bench version
frappe: v15.43.0
Enter: 20 Display: 20 Store: 20
Enter: 20 Display: 20% Store: 0.2
Claim this issue to let others know you're working on it. You'll earn 30 points when you complete it!