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=31c3e925a2979eff729da0d7fd791dd49849eada;p=working%2FEvergreen.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 6ed29f1596..c1a7aa71f3 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 @@
- +  / 
@@ -301,7 +300,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 4f1fa607c4..bd1ff0a19b 100644 --- a/Open-ILS/web/js/ui/default/acq/invoice/view.js +++ b/Open-ILS/web/js/ui/default/acq/invoice/view.js @@ -747,7 +747,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) -