Conflicts:
httemplate/edit/msg_template/email.html
httemplate/elements/tr-amount_fee.html
'cust_pay' => [
'$paynum' => 'Payment#',
'$paid' => 'Amount',
'cust_pay' => [
'$paynum' => 'Payment#',
'$paid' => 'Amount',
+ '$processing_fee' => 'Processing fee',
'$payby' => 'Payment method',
'$date' => 'Payment date',
'$payinfo' => 'Card/account# (masked)',
'$payby' => 'Payment method',
'$date' => 'Payment date',
'$payinfo' => 'Card/account# (masked)',
<BR>Enclose substitutions and other Perl expressions in braces:
<BR>{ $name } = ExampleCo (Smith, John)
<BR>{ time2str("%D", time) } = '.time2str("%D", time).'
<BR>Enclose substitutions and other Perl expressions in braces:
<BR>{ $name } = ExampleCo (Smith, John)
<BR>{ time2str("%D", time) } = '.time2str("%D", time).'
+<BR>{ "processing fee of $processing_fee" if $processing_fee; } = Will display text if there is a processing fee
-my $amount = $opt{'amount'};
+$processing_fee = $opt{'processing_fee'} if $opt{'processing_fee'} > 0;
+
+my $amount = $opt{'amount'} ? $opt{'amount'} : "0.00";
if ( $amount > 0 ) {
$amount += $fee
if $fee && $fee_display eq 'subtract';
if ( $amount > 0 ) {
$amount += $fee
if $fee && $fee_display eq 'subtract';
$amount += $opt{'surcharge_flatfee'}
if $opt{'surcharge_flatfee'} > 0;
$amount += $opt{'surcharge_flatfee'}
if $opt{'surcharge_flatfee'} > 0;
- $processing_fee = $opt{'processing_fee'} if $opt{'processing_fee'} > 0;
-
$amount += $processing_fee; ## needed if processing fee is checked on default.
$amount = sprintf("%.2f", $amount);
$amount += $processing_fee; ## needed if processing fee is checked on default.
$amount = sprintf("%.2f", $amount);