From: phasefx Date: Sat, 16 Jul 2005 22:07:23 +0000 (+0000) Subject: update status and PatronItems with each checkout X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b487c34766af4e7cbdd04bf6e5bae0c3741b3596;p=Evergreen.git update status and PatronItems with each checkout git-svn-id: svn://svn.open-ils.org/ILS/trunk@1230 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js b/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js index 390d7e41a1..707245c3ae 100755 --- a/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js +++ b/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js @@ -222,6 +222,7 @@ function patron_display_patron_checkout_items_init(p) { p.w.document.getElementById('checkout_done').addEventListener( 'command', function () { + // print receipt call goes here checkouts = []; p.refresh(); tb.focus(); }, false @@ -235,6 +236,10 @@ function patron_display_patron_checkout_items_init(p) { if (check) { checkouts.push( check ); p.patron_checkout_items.add_checkout_items( [ checkouts.length - 1 ] ); + var temp = p._patron.checkouts(); + temp.push( check ); + p._patron.checkouts( temp ); + p.display_patron(); tb.value = ''; } } else {