From: Bill Erickson Date: Thu, 12 Jul 2012 19:26:50 +0000 (-0400) Subject: ACQ invoice formatting improvements X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f99c9b09f68a80cfacecf0f9cf04b68791e66416;p=evergreen%2Fequinox.git ACQ invoice formatting improvements Prevent # invoiced and # paid inputs from wrapping. Also, make the text boxes a little smaller to reduce horizontal space requirements. It's still possible to enter any value, but only the 4 least significant digits are visible. Since it's not common to invoice 10k+ copies of the same item, this seems like a fair trade off. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/acq/invoice/view.tt2 b/Open-ILS/src/templates/acq/invoice/view.tt2 index d9bdae8dcf..add14fc615 100644 --- a/Open-ILS/src/templates/acq/invoice/view.tt2 +++ b/Open-ILS/src/templates/acq/invoice/view.tt2 @@ -46,7 +46,6 @@
-
@@ -84,7 +83,7 @@
- +  / 
@@ -295,7 +294,6 @@
-
diff --git a/Open-ILS/web/js/ui/default/acq/invoice/view.js b/Open-ILS/web/js/ui/default/acq/invoice/view.js index 5b2c69a47f..1819229093 100644 --- a/Open-ILS/web/js/ui/default/acq/invoice/view.js +++ b/Open-ILS/web/js/ui/default/acq/invoice/view.js @@ -733,7 +733,11 @@ function addInvoiceEntry(entry) { ['inv_item_count', 'phys_item_count', 'cost_billed', 'amount_paid'], function(field) { var dijitArgs = {required : true, constraints : {min: 0}, style : 'width:6em'}; - if(!field.match(/count/)) dijitArgs.style = 'width:9em'; + if(field.match(/count/)) { + dijitArgs.style = 'width:4em;'; + } else { + dijitArgs.style = 'width:9em;'; + } if(entry.isnew() && field == 'phys_item_count') { // by default, attempt to pay for all non-canceled and as-of-yet-un-invoiced items var count = Number(li.order_summary().item_count() || 0) -