projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add cust_event.no_action flag for events that conditionally execute, #36741
[freeside.git]
/
httemplate
/
edit
/
part_fee.html
diff --git
a/httemplate/edit/part_fee.html
b/httemplate/edit/part_fee.html
index
080b9cd
..
5f6dc38
100644
(file)
--- a/
httemplate/edit/part_fee.html
+++ b/
httemplate/edit/part_fee.html
@@
-22,6
+22,7
@@
%locale_labels
},
'fields' => \@fields,
%locale_labels
},
'fields' => \@fields,
+ 'viewall_dir' => 'browse',
'edit_callback' => $edit_callback,
'error_callback' => $error_callback,
&>
'edit_callback' => $edit_callback,
'error_callback' => $error_callback,
&>
@@
-34,7
+35,7
@@
die "access denied"
my $conf = FS::Conf->new;
my @tax_fields;
my $conf = FS::Conf->new;
my @tax_fields;
-if ( $conf->
exists('enable_taxproducts
') ) {
+if ( $conf->
config('tax_data_vendor
') ) {
@tax_fields = (
{ field => 'taxproductnum', type => 'select-taxproduct' }
);
@tax_fields = (
{ field => 'taxproductnum', type => 'select-taxproduct' }
);
@@
-67,10
+68,10
@@
foreach (@locales) {
$n = 0;
my %layer_fields = (
'charged' => [
$n = 0;
my %layer_fields = (
'charged' => [
- 'percent' => { label => 'Fraction of invoice total', type => 'percentage', },
+ '
charged_
percent' => { label => 'Fraction of invoice total', type => 'percentage', },
],
'owed' => [
],
'owed' => [
- 'percent' => { label => 'Fraction of balance', type => 'percentage', },
+ '
owed_
percent' => { label => 'Fraction of balance', type => 'percentage', },
],
'usage' => [
'usage' => { type => 'part_fee_usage' }
],
'usage' => [
'usage' => { type => 'part_fee_usage' }
@@
-106,7
+107,7
@@
my @fields = (
'recur' => 'a recurring charge' },
},
'recur' => 'a recurring charge' },
},
- { type => '
just
title', value => 'Fee calculation' },
+ { type => '
tablebreak-tr-
title', value => 'Fee calculation' },
{ field => 'amount', type => 'money', },
{ field => 'basis',
{ field => 'amount', type => 'money', },
{ field => 'basis',
@@
-119,8
+120,8
@@
my @fields = (
layer_values_callback => sub {
my ($cgi, $obj) = @_;
{
layer_values_callback => sub {
my ($cgi, $obj) = @_;
{
- 'charged' => { percent => $obj->percent },
- 'owed' => { percent => $obj->percent },
+ 'charged' => {
charged_
percent => $obj->percent },
+ 'owed' => {
owed_
percent => $obj->percent },
'usage' => { usage => [ $obj->part_fee_usage ] },
}
},
'usage' => { usage => [ $obj->part_fee_usage ] },
}
},
@@
-131,7
+132,7
@@
my @fields = (
type => 'checkbox',
value => 'Y' },
type => 'checkbox',
value => 'Y' },
- { type => '
just
title', value => 'Taxation' },
+ { type => '
tablebreak-tr-
title', value => 'Taxation' },
@tax_fields,
);
@tax_fields,
);