From 49a379d799870904a7f4650a9fd51675ac3d5eff Mon Sep 17 00:00:00 2001 From: Abijah Date: Thu, 5 Dec 2013 01:31:25 +0000 Subject: [PATCH] Changed column widths, spurred by the deposit slips not showing the item numbers fully, while giving too much room to Type git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1031 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/views/elements/jqGrid.ctp | 4 ++-- site/views/elements/tenders.ctp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/views/elements/jqGrid.ctp b/site/views/elements/jqGrid.ctp index 5494729..e959ba9 100644 --- a/site/views/elements/jqGrid.ctp +++ b/site/views/elements/jqGrid.ctp @@ -130,12 +130,12 @@ foreach ($jqGridColumns AS $header => &$col) { elseif ($col['formatter'] === 'currency') { // Use our custom formatting for currency $col['formatter'] = array('--special' => 'currencyFormatter'); - $default['width'] = 85; + $default['width'] = 65; $default['align'] = 'right'; } elseif ($col['formatter'] === 'date') { $default['formatoptions'] = array('newformat' => 'm/d/Y'); - $default['width'] = 95; + $default['width'] = 90; $default['align'] = 'center'; } elseif (preg_match("/^(long|short)?name$/", diff --git a/site/views/elements/tenders.ctp b/site/views/elements/tenders.ctp index c14535c..745402f 100644 --- a/site/views/elements/tenders.ctp +++ b/site/views/elements/tenders.ctp @@ -5,7 +5,7 @@ $cols = array(); $cols['Date'] = array('index' => 'Transaction.stamp', 'formatter' => 'date'); $cols['Customer'] = array('index' => 'Customer.name', 'formatter' => 'longname'); $cols['Item'] = array('index' => 'Tender.name', 'formatter' => 'longname'); -$cols['Type'] = array('index' => 'TenderType.name', 'formatter' => 'name'); +$cols['Type'] = array('index' => 'TenderType.name', 'formatter' => 'shortname'); $cols['Comment'] = array('index' => 'Tender.comment', 'formatter' => 'comment'); $cols['Amount'] = array('index' => 'LedgerEntry.amount', 'formatter' => 'currency'); $cols['Sub-Total'] = array('index' => 'subtotal-LedgerEntry.amount', 'formatter' => 'currency');