From 618ddd3490e180d3bc654e9ae5cc5b4f226121d5 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Mon, 2 Sep 2013 21:26:14 -0400 Subject: [PATCH] Bug 10240: (follow-up) fix display issues Fix the following two issues: 1) After paying a fine when offline the fine amount becomes NaN. 2) For previous checkouts for a patron, the title and barcode fields have the wrong infomation in them (i.e. they have been swapped) Signed-off-by: Bernardo Gonzalez Kriegel Signed-off-by: Chris Cormack Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt index 608db2a5a0..18dd737d5d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt @@ -257,7 +257,7 @@ function loadPatron(barcode) { $('#oldissuest tbody').empty(); issuesidx.each(function (item) { $('#oldissues').show(); - $('#oldissuest tbody').append("" + item.value.date_due + "" + item.value.barcode + "" + item.value.title + "" + item.value.itype + "" + item.value.issuedate + "" + item.value.issuebranch + "" + item.value.callnumber + "" + "" + ""); + $('#oldissuest tbody').append("" + item.value.date_due + "" + item.value.title + "" + item.value.barcode + "" + item.value.itype + "" + item.value.issuedate + "" + item.value.issuebranch + "" + item.value.callnumber + "" + "" + ""); $('.checkout-count').text(parseInt($('.checkout-count').text()) + 1); }, barcode); }); @@ -311,7 +311,7 @@ function recordFine(amount) { kohadb.recordTransaction(trans, function () { $('#session-payments').show(); $('#session-payments tbody').prepend('' + amount + '' + $.datepicker.formatDate(dateformat, timestamp) + timestamp.toTimeString() + ''); - $('.fine-amount').text(parseInt($('.fine-amount').text) - amount); + $('.fine-amount').text(parseInt($('.fine-amount').text()) - amount); }); } -- 2.39.5