Created attachment 17302 [details] screenshot The checkouts table has 2 columns with prices that get totaled: - charge (that seems to be the rental fee) - price (replacement price) In my screenshot, both columns are empty, but charges are still showing a total of 434.00. I am not sure what Koha is doing here, but it doesn't seem to make sense.
It looks like Koha is displaying the total amount owed by the patron regardless of whether that amount is from a rental charge listed in the checkouts table or a charge for something else (like a lost item). The total for this column should add up only rental charges listed in that table if it is to be correct. However, it should be noted that the rental charges listed in the table of checkouts are not shown based on charges which are actually on the patron's account (in the accountlines table), the charges are listed according to the current policy. If I checked out a DVD last week when there was no rental charge, and then check out a DVD today after a $3.00 rental fee was added the screen will show a $3.00 charge for both of those items even though accountlines will only have a line for the $3.00 I actually incurred after the rental fee policy change. We can't fix the total until we fix the way rental fees are calculated by the script. This leads me to wonder... Is there a good reason to be displaying the rental fee at all on this page? Do libraries who charge rental fees have policies which require them to be paid on a higher priority basis than other fines? If not, showing the total of all fines and charges on this screen (as we do) should be enough.
Fine and price columns now add up correctly. There is still a problem with charge as described in bug 7985.