% }
+<% include('/elements/tr-select-discount_term.html',
+ 'custnum' => $custnum,
+ 'cgi' => $cgi
+ )
+%>
% if ( $payby eq 'CARD' ) {
%
my $fee_pkg = '';
my $fee_display = '';
my $fee_op = '';
-if ( $conf->config('manual_process-pkgpart') ) {
+my $num_payments = scalar($cust_main->cust_pay);
+#handle old cust_main.pm (remove...)
+$num_payments = scalar( @{ [ $cust_main->cust_pay ] } )
+ unless defined $num_payments;
+if ( $conf->config('manual_process-pkgpart')
+ and ! $conf->exists('manual_process-skip_first') || $num_payments
+ )
+{
$fee_display = $conf->config('manual_process-display') || 'add';
$fee_op = $fee_display eq 'add' ? '+' : '-';