reprint last receipt action
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Jul 2005 14:47:02 +0000 (14:47 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Jul 2005 14:47:02 +0000 (14:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1423 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/circ/checkin_overlay.xul
Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture_overlay.xul
Evergreen/staff_client/chrome/content/evergreen/patron/patron_display_overlay.xul
Evergreen/staff_client/chrome/content/evergreen/util/print.js

index a4f930d..5020fd9 100755 (executable)
@@ -65,7 +65,7 @@
 
 <hbox id="CheckinItems_insert3">
        <button id="checkin_print" label="&checkin.print_receipt_label;" accesskey="&checkin.print_receipt_label.accesskey;"/>
-       <button id="checkin_reprint" label="&checkin.reprint_receipt_label;" accesskey="&checkin.reprint_receipt_label.accesskey;"/>
+       <button id="checkin_reprint" label="&checkin.reprint_receipt_label;" accesskey="&checkin.reprint_receipt_label.accesskey;" oncommand="mw.last_sPrint();"/>
        <spacer id="cii3s" flex="1"/>
        <checkbox id="checkin_auto" label="&checkin.auto_print_label;" accesskey="&checkin.auto_print_label.accesskey;"/> 
        <button id="checkin_done" label="&checkin.done_label;" accesskey="&checkin.done_label.accesskey;"/>
index dd3396c..6c396b3 100755 (executable)
@@ -62,7 +62,7 @@
 
 <hbox id="HoldCaptureItems_insert3">
        <button id="hold_capture_print" label="&hold_capture.print_receipt_label;" accesskey="&hold_capture.print_receipt_label.accesskey;"/>
-       <button id="hold_capture_reprint" label="&hold_capture.reprint_receipt_label;" accesskey="&hold_capture.reprint_receipt_label.accesskey;"/>
+       <button id="hold_capture_reprint" label="&hold_capture.reprint_receipt_label;" accesskey="&hold_capture.reprint_receipt_label.accesskey;" oncommand="mw.last_sPrint();"/>
        <spacer id="cii3s" flex="1"/>
        <checkbox id="hold_capture_auto" label="&hold_capture.auto_print_label;" accesskey="&hold_capture.auto_print_label.accesskey;"/> 
        <button id="hold_capture_done" label="&hold_capture.done_label;" accesskey="&hold_capture.done_label.accesskey;"/>
index ad950d6..4ffc6e5 100755 (executable)
 
 <hbox id="PatronCheckoutItems_insert3">
        <button id="checkout_print" label="&patron_display.checkout.print_receipt_label;" accesskey="&patron_display.checkout.print_receipt_label.accesskey;"/>
-       <button id="checkout_reprint" label="&patron_display.checkout.reprint_receipt_label;" accesskey="&patron_display.checkout.reprint_receipt_label.accesskey;"/>
+       <button id="checkout_reprint" label="&patron_display.checkout.reprint_receipt_label;" accesskey="&patron_display.checkout.reprint_receipt_label.accesskey;" oncommand="mw.last_sPrint();"/>
        <spacer id="pcii3s" flex="1"/>
        <checkbox id="checkout_auto" label="&patron_display.checkout.auto_print_label;" accesskey="&patron_display.checkout.auto_print_label.accesskey;"/> 
        <button id="checkout_done" label="&patron_display.checkout.done_label;" accesskey="&patron_display.checkout.done_label.accesskey;"/>
index 3afc4ab..d59a649 100644 (file)
@@ -191,8 +191,13 @@ function print_template_replace(s,params) {
 
 // Lower-level
 
+function last_sPrint() {
+       sPrint( mw.G.last_receipt );
+}
+
 function sPrint(s) {
        sdump('D_PRINT',arg_dump(arguments));
+       mw.G.last_receipt = s;
        var w = new_window('data:text/html,<html>' + s + '</html>\r\n', { 'window_name':'LastPrint' });
        w.minimize(); mw.minimize();
        setTimeout(