From 389fb26cdbcd6095d0185cd5d2d585592fb982a1 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 12 Jul 2012 15:26:50 -0400 Subject: [PATCH] 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 Conflicts: Open-ILS/src/templates/acq/invoice/view.tt2 Signed-off-by: Bill Erickson --- Open-ILS/src/templates/acq/invoice/view.tt2 | 4 +--- Open-ILS/web/js/ui/default/acq/invoice/view.js | 6 +++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/acq/invoice/view.tt2 b/Open-ILS/src/templates/acq/invoice/view.tt2 index d4c91b372d..9023c4a271 100644 --- a/Open-ILS/src/templates/acq/invoice/view.tt2 +++ b/Open-ILS/src/templates/acq/invoice/view.tt2 @@ -13,7 +13,6 @@
-
@@ -50,7 +49,7 @@
- +  / 
@@ -244,7 +243,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 a83241a34c..ce8c6621a2 100644 --- a/Open-ILS/web/js/ui/default/acq/invoice/view.js +++ b/Open-ILS/web/js/ui/default/acq/invoice/view.js @@ -517,7 +517,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) - -- 2.11.0