show the backdate if checkin_time == 'now'
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Sep 2006 19:34:45 +0000 (19:34 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Sep 2006 19:34:45 +0000 (19:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5868 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkin.js

index 970308e..2c8aeef 100644 (file)
@@ -28,7 +28,10 @@ circ.checkin.prototype = {
                                'status' : { 'hidden' : false },
                                'route_to' : { 'hidden' : false },
                                'alert_message' : { 'hidden' : false },
-                       } 
+                       },
+                       {
+                               'except_these' : [ 'uses', 'checkin_time_full' ],
+                       }
                );
 
                JSAN.use('util.list'); obj.list = new util.list('checkin_list');
@@ -268,6 +271,7 @@ circ.checkin.prototype = {
                                || checkin.ilsevent == 7011 /* COPY_STATUS_LOST */ 
                                || checkin.ilsevent == 7012 /* COPY_STATUS_MISSING */) return obj.on_failure();
                        var retrieve_id = js2JSON( { 'copy_id' : checkin.copy.id(), 'barcode' : checkin.copy.barcode(), 'doc_id' : (typeof checkin.record != 'undefined' ? ( typeof checkin.record.ilsevent == 'undefined' ? checkin.record.doc_id() : null ) : null ) } );
+                       if (checkin.circ.checkin_time() == 'now') checkin.circ.checkin_time(backdate);
                        obj.list.append(
                                {
                                        'retrieve_id' : retrieve_id,