[freeside-commits] branch master updated. aa616de5731fa26c036cf56ee6b4f10e27afdb5d

Christopher Burger burgerc at freeside.biz
Thu Oct 11 07:15:11 PDT 2018


The branch, master has been updated
       via  aa616de5731fa26c036cf56ee6b4f10e27afdb5d (commit)
      from  89f1173614319de0a6ad1625a066574be67c06a9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit aa616de5731fa26c036cf56ee6b4f10e27afdb5d
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Thu Oct 11 10:14:32 2018 -0400

    RT# 73382 - fixed formatting issue with calendar

diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html
index 457157e6d..12b192e8c 100644
--- a/httemplate/elements/customer-table.html
+++ b/httemplate/elements/customer-table.html
@@ -640,6 +640,7 @@ and probably should be cleaned up more before being used by anything else.
 
       var my_cell = document.createElement('TD');
       my_cell.setAttribute('align', '<% $align{ $opt{align}->[$col] || 'l' } %>');
+      my_cell.style.whiteSpace = 'nowrap';
 %     if ($opt{'color'}->[$col]) {
       my_cell.style.color = '<% $opt{color}->[$col] %>';
 %     }
@@ -667,6 +668,7 @@ and probably should be cleaned up more before being used by anything else.
       my_input_button.setAttribute('title', <% mt('Select date') |js_string %>);
       my_input_button.setAttribute('name', '<% $name %>'+thisrownum+'button');
       my_input_button.setAttribute('id',   '<% $name %>'+thisrownum+'button');
+      my_input_button.style.verticalAlign = 'top';
 %     }
       my_input.value = (values && values.<% $field %>) || '';
 %     if ( $opt{onchange}->[$col] ) {
@@ -732,7 +734,7 @@ and probably should be cleaned up more before being used by anything else.
   <TH>Customer</TH>
   <TH>Balance</TH>
 % foreach my $header ( @{$opt{header}} ) {
-    <TH><% $header %></TH>
+    <TH style="white-space: nowrap"><% $header %></TH>
 % }
 </TR>
 
diff --git a/httemplate/misc/process/batch-cust_pay.cgi b/httemplate/misc/process/batch-cust_pay.cgi
index b4580bb4e..0720fdada 100644
--- a/httemplate/misc/process/batch-cust_pay.cgi
+++ b/httemplate/misc/process/batch-cust_pay.cgi
@@ -33,12 +33,14 @@ foreach my $row ( map /^custnum(\d+)$/, keys %$param ) {
   $custnum = $cust_main->custnum if $cust_main;
   # if !$cust_main, then this will throw an error on batch_insert
 
+  my $_date = $param->{"_date$row"} ? parse_datetime($param->{"_date$row"}) : '';
+
   my $cust_pay = new FS::cust_pay {
                     'custnum'        => $custnum,
                     'paid'           => $param->{"paid$row"},
                     'payby'          => 'BILL',
                     'payinfo'        => $param->{"payinfo$row"},
-                    '_date'          => $param->{"_date$row"},
+                    '_date'          => $_date,
                     'discount_term'  => $param->{"discount_term$row"},
                     'paybatch'       => $paybatch,
                     'no_auto_apply'  => exists($param->{"no_auto_apply$row"}) ? 'Y' : '',

-----------------------------------------------------------------------

Summary of changes:
 httemplate/elements/customer-table.html    | 4 +++-
 httemplate/misc/process/batch-cust_pay.cgi | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list