summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-10-11 10:14:32 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-10-11 10:14:32 -0400
commitaa616de5731fa26c036cf56ee6b4f10e27afdb5d (patch)
tree683f8388c30e448ff09373b94c18096fb1378dfb /httemplate/misc
parent89f1173614319de0a6ad1625a066574be67c06a9 (diff)
RT# 73382 - fixed formatting issue with calendar
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/process/batch-cust_pay.cgi4
1 files changed, 3 insertions, 1 deletions
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' : '',