[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 701eb8f1932a16bacc98760baec8c8a02a4ca84c

Evergreen Git git at git.evergreen-ils.org
Mon Jul 8 10:47:01 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_3 has been updated
       via  701eb8f1932a16bacc98760baec8c8a02a4ca84c (commit)
      from  144fb20f896bf7bb4576177baf6554aa035e9afa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 701eb8f1932a16bacc98760baec8c8a02a4ca84c
Author: Bill Erickson <berick at esilibrary.com>
Date:   Wed Jun 5 17:29:36 2013 -0400

    LP1187016 Prevent new copies on activated POs
    
    If a PO has already been activated, prevent users from adding new copies
    in the Item Count entry under the full lineitem copy grid.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js
index 5f5df76..a3a38f5 100644
--- a/Open-ILS/web/js/ui/default/acq/common/li_table.js
+++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js
@@ -1164,6 +1164,12 @@ function AcqLiTable() {
         acqLitBatchUpdateCopies.onClick = function() { self.batchCopyUpdate() };
         acqLitCopyCountInput.attr('value', '0');
 
+        if (this.isPO && PO && PO.order_date()) {
+            // prevent adding copies to activated POs
+            acqLitCopyCountInput.attr('disabled', true);
+            acqLitAddCopyCount.attr('disabled', true);
+        }
+
         while(this.copyTbody.childNodes[0])
             this.copyTbody.removeChild(this.copyTbody.childNodes[0]);
 

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/acq/common/li_table.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list