mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 09:21:39 -05:00
Letters are weird: - "rate" is adjusted based on the number of pages [^1]. - "billable_units" is the number of sheets [^2], but doesn't seem to be used for anything. Instead of "billable_units", we multiply "notifications_sent" and the page-adjusted "rate" to determine the cost of a batch [^3][^4]. [^1]:a4fe11a3aa/app/dao/fact_billing_dao.py (L473)[^2]:a4fe11a3aa/app/letters/utils.py (L230)[^3]:a4fe11a3aa/app/dao/fact_billing_dao.py (L828)[^4]:a4fe11a3aa/app/dao/fact_billing_dao.py (L128)