projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix label on invoice_include_aging conf
[freeside.git]
/
FS
/
FS
/
part_pkg
/
rt_time.pm
diff --git
a/FS/FS/part_pkg/rt_time.pm
b/FS/FS/part_pkg/rt_time.pm
index
9452d44
..
37891e2
100644
(file)
--- a/
FS/FS/part_pkg/rt_time.pm
+++ b/
FS/FS/part_pkg/rt_time.pm
@@
-14,13
+14,24
@@
our %info = (
'name' => 'Bill from Time Worked on tickets in RT',
'shortname' => 'Project Billing (RT)',
'weight' => 55,
'name' => 'Bill from Time Worked on tickets in RT',
'shortname' => 'Project Billing (RT)',
'weight' => 55,
+ 'inherit_fields' => [ 'global_Mixin' ],
'fields' => {
'base_rate' => { 'name' => 'Rate (per minute)',
'default' => 0,
},
'fields' => {
'base_rate' => { 'name' => 'Rate (per minute)',
'default' => 0,
},
- }
+ 'recur_fee' => {'disabled' => 1},
+ },
+ 'fieldorder' => [ 'base_rate' ],
);
);
+sub price_info {
+ my $self = shift;
+ my $str = $self->SUPER::price_info;
+ my $rate = $self->option('base_rate');
+ $str .= " plus $rate/min" if $rate;
+ $str;
+}
+
sub calc_setup {
my($self, $cust_pkg ) = @_;
$self->option('setup_fee');
sub calc_setup {
my($self, $cust_pkg ) = @_;
$self->option('setup_fee');