From 7959a4f9fb91cbaf689c88410355dce38de00c51 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 21 Dec 2005 01:29:01 +0000 Subject: [PATCH] thinko git-svn-id: svn://svn.open-ils.org/ILS/trunk@2487 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../server/patron/bill_details.xul | 20 +++++++++---------- .../xul/staff_client/server/patron/bills.js | 4 +++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/bill_details.xul b/Open-ILS/xul/staff_client/server/patron/bill_details.xul index 31bcc86063..ecc88e1b6d 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_details.xul +++ b/Open-ILS/xul/staff_client/server/patron/bill_details.xul @@ -62,24 +62,24 @@ var c1 = document.createElement('label'); row.appendChild(c1); - c1.setAttribute('value', mb_list[0].voided() ? 'Yes' : 'No' ); + c1.setAttribute('value', mb_list[i].voided() ? 'Yes' : 'No' ); var c2 = document.createElement('label'); row.appendChild(c2); - c2.setAttribute('value', util.date.formatted_date( mb_list[0].billing_ts(),'%F' )); + c2.setAttribute('value', util.date.formatted_date( mb_list[i].billing_ts(),'' )); var c3 = document.createElement('label'); row.appendChild(c3); - c3.setAttribute('value', mb_list[0].billing_type()); + c3.setAttribute('value', mb_list[i].billing_type()); var c4 = document.createElement('label'); row.appendChild(c4); - c4.setAttribute('value', util.money.sanitize( mb_list[0].amount() ) ); + c4.setAttribute('value', util.money.sanitize( mb_list[i].amount() ) ); c4.setAttribute('class','text-right'); var c5 = document.createElement('label'); row.appendChild(c5); - c5.setAttribute('value', mb_list[0].note()); + c5.setAttribute('value', mb_list[i].note()); } var mp_list = g.network.request( @@ -96,25 +96,25 @@ var c1 = document.createElement('label'); row.appendChild(c1); - //c1.setAttribute('value', mp_list[0].voided() ? 'Yes' : 'No' ); + //c1.setAttribute('value', mp_list[i].voided() ? 'Yes' : 'No' ); c1.setAttribute('value', 'No' ); var c2 = document.createElement('label'); row.appendChild(c2); - c2.setAttribute('value', util.date.formatted_date( mp_list[0].payment_ts(),'%F' )); + c2.setAttribute('value', util.date.formatted_date( mp_list[i].payment_ts(),'' )); var c3 = document.createElement('label'); row.appendChild(c3); - c3.setAttribute('value', mp_list[0].payment_type()); + c3.setAttribute('value', mp_list[i].payment_type()); var c4 = document.createElement('label'); row.appendChild(c4); - c4.setAttribute('value', util.money.sanitize( mp_list[0].amount() ) ); + c4.setAttribute('value', util.money.sanitize( mp_list[i].amount() ) ); c4.setAttribute('class','text-right'); var c5 = document.createElement('label'); row.appendChild(c5); - c5.setAttribute('value', mp_list[0].note()); + c5.setAttribute('value', mp_list[i].note()); } diff --git a/Open-ILS/xul/staff_client/server/patron/bills.js b/Open-ILS/xul/staff_client/server/patron/bills.js index 007f8b9e81..8df4d92c25 100644 --- a/Open-ILS/xul/staff_client/server/patron/bills.js +++ b/Open-ILS/xul/staff_client/server/patron/bills.js @@ -250,7 +250,9 @@ patron.bills.prototype = { throw robj; } } catch(E) { - obj.error.sdump('D_ERROR','patron.bills.pay: ' + E); + var error = 'patron.bills.pay: ' + js2JSON(E); + obj.error.sdump('D_ERROR',error); + alert(error); return false; } }, -- 2.43.2