'percent' => { label=>'Percent', size=>2, },
'reason' => 'Reason',
'taxclass' => { label=>'Tax class', type=>'select-taxclass', },
- 'nextbill' => { label=>'Hold late fee until next invoice', type=>'checkbox', value=>'Y' },
+ 'nextbill' => { label=>'Hold late fee until next invoice',
+ type=>'checkbox', value=>'Y' },
+ 'setuptax' => { label=>'Late fee is tax exempt',
+ type=>'checkbox', value=>'Y' },
);
}
sprintf('%.2f', $cust_bill->owed * $self->option('percent') / 100 );
my %charge = (
- 'amount' => $amount,
- 'pkg' => $self->option('reason'),
- 'taxclass' => $self->option('taxclass'),
+ 'amount' => $amount,
+ 'pkg' => $self->option('reason'),
+ 'taxclass' => $self->option('taxclass'),
+ 'setuptax' => $self->option('setuptax'),
);
$charge{'start_date'} = $cust_main->next_bill_date #unless its more than N months away?
'charge' => { label=>'Amount', type=>'money', }, # size=>7, },
'reason' => 'Reason',
'taxclass' => { label=>'Tax class', type=>'select-taxclass', },
- 'nextbill' => { label=>'Hold late fee until next invoice', type=>'checkbox', value=>'Y' },
+ 'nextbill' => { label=>'Hold late fee until next invoice',
+ type=>'checkbox', value=>'Y' },
+ 'setuptax' => { label=>'Late fee is tax exempt',
+ type=>'checkbox', value=>'Y' },
);
}
my %charge = (
'amount' => $self->option('charge'),
'pkg' => $self->option('reason'),
- 'taxclass' => $self->option('taxclass')
+ 'taxclass' => $self->option('taxclass'),
+ 'setuptax' => $self->option('setuptax'),
);
$charge{'start_date'} = $cust_main->next_bill_date #unless its more than N months away?
my $what = $self->option('what');
+ #false laziness w/Condition/cust_payments_pkg.pm
if ( $what eq 'base_recur_permonth' ) { #huh. yuck.
if ( $part_pkg->freq !~ /^\d+$/ ) {
die 'WARNING: Not crediting customer '. $cust_main->referral_custnum.