X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_device.html;h=12c19ed90a7b89438cbaf383a94cfad3e2c5b7d4;hb=a6c5bd2d56ad177a8f79ac0aa5c88b389513dc82;hp=5c8fde339a12cc54ddb35249fcc38ce8a3373df6;hpb=665067cef48a5516e0bfb2dd79d99b8495e25ee5;p=freeside.git diff --git a/httemplate/browse/part_device.html b/httemplate/browse/part_device.html index 5c8fde339..12c19ed90 100644 --- a/httemplate/browse/part_device.html +++ b/httemplate/browse/part_device.html @@ -8,12 +8,25 @@ ], 'query' => { 'table' => 'part_device', }, 'count_query' => 'SELECT COUNT(*) FROM part_device', - 'header' => [ '#', 'Device type' ], + 'header' => [ '#', + 'Device type', + 'Inventory Class', + 'External name', ], 'fields' => [ 'devicepart', 'devicename', + sub { + my $part_device = shift; + my $inventory_class = $part_device->inventory_class; + return $inventory_class->classname + if $inventory_class; + ''; + }, + 'title', ], 'links' => [ $link, $link, + '', + '', ], ) %>