X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_pay_batch.cgi;h=825d21c8ab77e8c6fe1f49c29c82517a71fbab6e;hb=67b83de99e43283a745ce5b0aa5da84b6d2643a8;hp=2fceb93f8db58b32afc72b839136a2f735874a71;hpb=d557c2a3bf895d17c7d9fcfa2f5fb0c99b9e989f;p=freeside.git diff --git a/httemplate/search/cust_pay_batch.cgi b/httemplate/search/cust_pay_batch.cgi index 2fceb93f8..825d21c8a 100755 --- a/httemplate/search/cust_pay_batch.cgi +++ b/httemplate/search/cust_pay_batch.cgi @@ -124,7 +124,7 @@ $sql_query = "SELECT paybatchnum,invnum,custnum,cpb.last,cpb.first," . 'LEFT JOIN pay_batch USING ( batchnum ) ' . "$search ORDER BY $orderby"; -my $html_init = ''; +my $html_init = ''; if ( $pay_batch ) { my $fixed = $conf->config('batch-fixed_format-'. $pay_batch->payby); if ( @@ -136,20 +136,23 @@ if ( $pay_batch ) { && $FS::CurrentUser::CurrentUser->access_right('Redownload resolved batches') ) ) { - $html_init .= qq!!; + $html_init .= qq!!; if ( $fixed ) { $html_init .= qq!!; } else { - $html_init .= qq!Download batch in format !. qq!!. qq!!. qq!!. qq!!. qq!!. qq!!. + qq!!. + qq!!. qq!!; } - $html_init .= qq!
!; + $html_init .= qq!

!; } if ( @@ -158,25 +161,42 @@ if ( $pay_batch ) { && $FS::CurrentUser::CurrentUser->access_right('Reprocess batches') ) ) { - $html_init .= qq!!. - qq!Upload results
!. - qq!Filename
!; + $html_init .= ''. + include('/elements/form-file_upload.html', + 'name' => 'FileUpload', + 'action' => "$p/misc/upload-batch.cgi", + 'num_files' => 1, + 'fields' => [ 'batchnum', 'format' ], + 'message' => 'Batch results uploaded.', + ) . + 'Upload results
'. + include('/elements/file-upload.html', + 'field' => 'file', + 'label' => 'Filename', + 'no_table'=> 1 + ). + '
' + ; if ( $fixed ) { $html_init .= qq!!; } else { - $html_init .= qq!Format Format !. + qq!
!; + qq!!. + qq!!. + qq!
!; } $html_init .= qq!!; - $html_init .= '
'; + $html_init .= '
'; } - + $html_init .= '
' } if ($pay_batch) {