[freeside-commits] freeside/httemplate/browse rate_tier.html, NONE, 1.1.2.2
Ivan,,,
ivan at wavetail.420.am
Sun Nov 13 20:28:52 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv30904/httemplate/browse
Added Files:
Tag: FREESIDE_2_3_BRANCH
rate_tier.html
Log Message:
rate tiers for vnes, RT#14903
--- NEW FILE: rate_tier.html ---
<% include( 'elements/browse.html',
'title' => 'Tiering plans',
'name_singular' => 'tiering plan',
'menubar' => [ 'Add a new tier plan' =>
$p.'edit/rate_tier.html',
],
'query' => { 'table' => 'rate_tier', },
'count_query' => 'SELECT COUNT(*) FROM rate_tier',
'header' => [ 'Plan', 'Tiers', ],
'fields' => [ 'tiername',
$details_sub,
],
'links' => [ $link, ],
#'disableable' => 1,
#'disabled_statuspos' => 1,
)
%>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
my $conf = new FS::Conf;
my $money_char = $conf->config('money_char') || '$';
my $link = [ "${p}edit/rate_tier.html?", 'tiernum' ];
my $details_sub = sub {
my $rate_tier = shift;
[ [ { 'data' => 'Minimum quantity',
'align' => 'center',
},
{ 'data' => 'Charge per minute/call',
'align' => 'center',
},
],
map { my $rate_tier_detail = $_;
[
{ 'data' => $rate_tier_detail->min_quan,
'align' => 'right',
},
{ 'data' => $money_char. $rate_tier_detail->min_charge,
'align' => 'right',
},
];
}
$rate_tier->rate_tier_detail
];
};
</%init>
More information about the freeside-commits
mailing list