Measured Usage less than 1 not shown on invoice

Bug #1006336 reported by Michael
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
citrusdb
Fix Committed
Undecided
Paul Yasi

Bug Description

Where the measured usage of a service is greater than 1,
the calculation appears on the invoice, e.g., "(20 x 4)".
But if it is less than 1, while the total is correct,
the calculation does not appear, e.g., for 0.5 hours of
a service billed at $60/h, the total of $30 appears, but
not the "(60 * 0.5)".
That calculation needs to be shown when usage is not 1.
(Would it not be simpler to always print the quantity,
even if it's exactly one? That would also make the
formatting more uniform and so make the invoices easier
to read. As would using the format "(0.5 @ 60)", which
makes it clear which number is the rate and which the
usage.)

Changed in citrusdb:
assignee: nobody → Paul Yasi (paul-citrusdb)
Changed in citrusdb:
status: New → Fix Committed
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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.