[freeside-commits] freeside/rt/lib/RT/URI/freeside Internal.pm, 1.7, 1.7.2.1
Mark Wells
mark at wavetail.420.am
Thu Apr 7 17:59:22 PDT 2011
Update of /home/cvs/cvsroot/freeside/rt/lib/RT/URI/freeside
In directory wavetail.420.am:/tmp/cvs-serv21652/lib/RT/URI/freeside
Modified Files:
Tag: FREESIDE_2_1_BRANCH
Internal.pm
Log Message:
display customer agent, class, tag in ticket search, #8784
Index: Internal.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/URI/freeside/Internal.pm,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -u -w -d -r1.7 -r1.7.2.1
--- Internal.pm 17 Sep 2010 23:32:33 -0000 1.7
+++ Internal.pm 8 Apr 2011 00:59:20 -0000 1.7.2.1
@@ -142,4 +142,29 @@
}
+sub AgentName {
+ my $self = shift;
+ my $rec = $self->_FreesideGetRecord() or return;
+ my $agent = $rec->{'_object'}->agent or return;
+ return $agent->agentnum . ': ' . $agent->agent;
+}
+
+sub CustomerClass {
+ my $self = shift;
+ my $rec = $self->_FreesideGetRecord() or return;
+ my $cust_class = $rec->{'_object'}->cust_class or return;
+ return $cust_class->classname;
+}
+
+sub CustomerTags {
+ my $self = shift;
+ my $rec = $self->_FreesideGetRecord() or return;
+ my @part_tag = $rec->{'_object'}->part_tag;
+ return map {
+ { 'name' => $_->tagname,
+ 'desc' => $_->tagdesc,
+ 'color' => $_->tagcolor }
+ } @part_tag;
+}
+
1;
More information about the freeside-commits
mailing list