Comment 1 for bug 1006336

Revision history for this message
Paul Yasi (paul-citrusdb) wrote :

Fix commtted in revision 244, this will print the rate @ price whenever the rate is not equal to one. If your bill is a single month or one time service then it will show the usage times the price. However, this rate shown is technically the number of months of service times the usage amount. So if you are billing 6 months of service with a usage of 1 you will see (6 @ 2.95) for example. If you have usage being billed on a 6 month invoice you will see the months times the usage, so if you bill for 6 months of 0.5 usage it will say (3.00 @ 2.95) 6 months of 2.0 usage will say (12.00 @ 2.95) etc.

rate = (($billing_freq/$service_freq)*($pricerate*$usage_multiple))/$pricerate

http://bazaar.launchpad.net/~paul-citrusdb/citrusdb/gpg/revision/422?start_revid=422