From: Michele Morgan Date: Tue, 24 Jan 2017 14:17:58 +0000 (-0500) Subject: Treat the Cost field like the other money fields in the copy editor, X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c4b983550c7a59ef762a3ae360742a93a4492c7c;p=working%2FEvergreen.git Treat the Cost field like the other money fields in the copy editor, reverting to null if blanked. --- diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index f4537a2742..3d7a189e7e 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -567,7 +567,7 @@ g.apply = function(field,value) { value = null; } if (field == 'alert_message') { value = value.replace(/^\W+$/g,''); } - if (field == 'price' || field == 'deposit_amount') { + if (field == 'price' || field == 'deposit_amount' || field == 'cost'){ if (value == '') { value = null; } else {