update status and PatronItems with each checkout
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 16 Jul 2005 22:07:23 +0000 (22:07 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 16 Jul 2005 22:07:23 +0000 (22:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1230 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js

index 390d7e4..707245c 100755 (executable)
@@ -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 {