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