Skip to content

fix: save percentage calculations to history - #318

Open
Guflly wants to merge 1 commit into
FossifyOrg:mainfrom
Guflly:fix/percentage-history
Open

fix: save percentage calculations to history#318
Guflly wants to merge 1 commit into
FossifyOrg:mainfrom
Guflly:fix/percentage-history

Conversation

@Guflly

@Guflly Guflly commented Aug 2, 2026

Copy link
Copy Markdown

Type of change(s)

  • Bug fix
  • Feature / enhancement
  • Infrastructure / tooling (CI, build, deps, tests)
  • Documentation

What changed and why

  • Percentage operations now save their formula and result through the same history path as normal calculations.
  • Reused the history insertion logic to keep both paths consistent.

Tests performed

  • ./gradlew detekt
  • Compiled the affected production classes in an isolated JVM harness and verified 85 × 25 % creates one history entry with formula 85×25% and result 21.25.

Closes the following issue(s)

Checklist

  • I read the contribution guidelines.
  • I manually tested my changes on device/emulator (if applicable).
  • I updated the "Unreleased" section in CHANGELOG.md (if applicable).
  • I have self-reviewed my pull request (no typos, formatting errors, etc.).
  • I understand every change in this pull request.

@Guflly
Guflly requested a review from naveensingh as a code owner August 2, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Percentual (%) operations not saved in history

1 participant