% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::UI::Web::small_custview
use FS::UI::Web::small_custview qw( small_custview );
#new-style
$html = small_custview(
{ 'cust_main' => $cust_main, #or 'custnum' => $custnum,
'countrydefault' => 'US',
'nobalance' => 1,
'url' => 'http://freeside.machine/freeside/view/cust_main.cgi',
'nopkg' => 1,
}
);
#old-style (deprecated)
$html = small_custview( $cust_main, $countrydefault, $nobalance, $url );
A subroutine for displaying customer information.
New-style interface. Keys are:
Customer (as a FS::cust_main object)
Customer number (if cust_main is not provided).
Old-style (deprecated) interface.
Sheesh. I did switch to mason, but this is still hanging around. Figure out some better way to sling mason components to self-service & RT.
(Or, is it useful to have this without depending on the regular back-office UI and Mason stuff to be in place? So we have something suitable for displaying customer information in other external systems, not just RT?)