From aa616de5731fa26c036cf56ee6b4f10e27afdb5d Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Thu, 11 Oct 2018 10:14:32 -0400 Subject: RT# 73382 - fixed formatting issue with calendar --- httemplate/misc/process/batch-cust_pay.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'httemplate/misc/process') 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' : '', -- cgit v1.2.1