Measured Usage less than 1 not shown on invoice
Bug #1006336 reported by
Michael
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 |
To post a comment you must log in.
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