[open-ils-commits] [GIT] Evergreen ILS branch master updated. 004974d43a038046cb3569fa9e506722faa9cd43
Evergreen Git
git at git.evergreen-ils.org
Mon Jul 8 10:45:12 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, master has been updated
via 004974d43a038046cb3569fa9e506722faa9cd43 (commit)
from ab37833ff9df7fa13e86e41fb160232bdee51793 (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 004974d43a038046cb3569fa9e506722faa9cd43
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