X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fprocess%2Fbatch-cust_pay.cgi;h=0720fdadad34ddc27cc27ba0ebbed6a533c1b472;hb=1d2cb271a07e021cef5d4cd2f4acf40f716d2daa;hp=ff78862398588f6376034aea8c1e245718fda3a0;hpb=4b695753d2456060e6a16808120cbb488a19c584;p=freeside.git diff --git a/httemplate/misc/process/batch-cust_pay.cgi b/httemplate/misc/process/batch-cust_pay.cgi index ff7886239..0720fdada 100644 --- a/httemplate/misc/process/batch-cust_pay.cgi +++ b/httemplate/misc/process/batch-cust_pay.cgi @@ -33,11 +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' => $_date, 'discount_term' => $param->{"discount_term$row"}, 'paybatch' => $paybatch, 'no_auto_apply' => exists($param->{"no_auto_apply$row"}) ? 'Y' : '',