[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. 7a5ac53af5f5c151fcee4a0c3405493d022533d6
Evergreen Git
git at git.evergreen-ils.org
Mon Jul 8 10:47:02 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_4 has been updated
via 7a5ac53af5f5c151fcee4a0c3405493d022533d6 (commit)
from 6055cc4a3460c056cc33bf47eac7f989da3c749d (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 7a5ac53af5f5c151fcee4a0c3405493d022533d6
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 f007bf6..16665c4 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
@@ -1734,6 +1734,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