return the new barcode on Replace Barcode so Copy Status can resubmit it
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 06:58:15 +0000 (06:58 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 06:58:15 +0000 (06:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5884 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/util.js

index a0b009d..a93d2b7 100644 (file)
@@ -36,6 +36,7 @@ cat.util.replace_barcode = function(old_bc) {
                copy.barcode(new_bc); copy.ischanged('1');
                var r = network.simple_request('FM_ACP_FLESHED_BATCH_UPDATE', [ ses(), [ copy ] ]);
                if (typeof r.ilsevent != 'undefined') { if (r.ilsevent != 0) throw(r); }
+               return new_bc;
        } catch(E) {
                JSAN.use('util.error'); var error = new util.error();
                error.standard_unexpected_error_alert('Rename did not likely occur.',E);