From 2135074c185b269481f056f56cac9b631099458c 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 Fix the following two issues: 1) After paying a fine when offline the fine amount becomes NaN. 2) For previous checkouts for a pratron the title and barcode fields have the wrong infomation in them (i.e. they have been swapped) --- 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 608db2a..18dd737 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); }); } -- 1.8.1.2