From: Bill Erickson Date: Wed, 5 Jun 2013 21:29:36 +0000 (-0400) Subject: LP1187016 Prevent new copies on activated POs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fkmlussier%2Flp1187016-activated-po-no-new-copies;p=working%2FEvergreen.git 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 Signed-off-by: Kathy Lussier --- 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 7a804da228..c5f5fc70fb 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 @@ -1697,6 +1697,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]);