#675 — [Bug]: wrong pricing proposal calculations for reports having interchange fees

Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: Unassigned

Created: 2025-09-04 · Updated: 2025-09-15

Description

Steps to reproduce

To reproduce:

  1. Try to use detailed “Merchant Statement July.pdf” file with discountFees much smaller than totalFees (because interchange fees are not parsed by Statement Analyzer).

What was the expected behavior?

  • Fix bug: In “Potential Savings” on UI there is a bug which on edit of “Discount Rate” “Current Effective Rate” jumps to very low and wrong (not based on “Total Fees”) number.
  • “Discount Rates” calculations on PDF not based on “Total Fees”, need to make them to.
  • “Discount Rates” label is not right - use “Volume Rates” (because merchant have to pay both INTERCHANGE FEES and Discount rates”.

Implementation details

Updated https://docs.google.com/spreadsheets/d/1IcS2kp8HmEhWxTjTbfakpM7l4tYdACXd0ZlIQlaJhdE/edit?gid=0#gid=0 as well.

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets