projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2a54fd1
)
show package pricing details on customer view, RT11372
author
levinse
<levinse>
Sat, 12 Feb 2011 05:03:58 +0000
(
05:03
+0000)
committer
levinse
<levinse>
Sat, 12 Feb 2011 05:03:58 +0000
(
05:03
+0000)
FS/FS/part_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg.pm
b/FS/FS/part_pkg.pm
index
140bd9b
..
4516816
100644
(file)
--- a/
FS/FS/part_pkg.pm
+++ b/
FS/FS/part_pkg.pm
@@
-537,6
+537,10
@@
sub pkg_comment {
$pre. $self->pkg. ' - '. $self->custom_comment;
}
$pre. $self->pkg. ' - '. $self->custom_comment;
}
+sub price_info { # safety, in case a part_pkg hasn't defined price_info
+ '';
+}
+
sub custom_comment {
my $self = shift;
( $self->custom ? '(CUSTOM) ' : '' ). $self->comment . ' ' . $self->price_info;
sub custom_comment {
my $self = shift;
( $self->custom ? '(CUSTOM) ' : '' ). $self->comment . ' ' . $self->price_info;