<% 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

NAME

FS::UI::Web::small_custview

SYNOPSIS

  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 );

DESCRIPTION

A subroutine for displaying customer information.

SUBROUTINES

small_custview HASHREF

New-style interface. Keys are:

cust_main

Customer (as a FS::cust_main object)

custnum

Customer number (if cust_main is not provided).

countrydefault
nobalance
url
small_custview CUSTNUM || CUST_MAIN_OBJECT, COUNTRYDEFAULT, NOBALANCE_FLAG, URL

Old-style (deprecated) interface.

BUGS

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?)

SEE ALSO

FS::UI::Web

<% include ('/elements/footer.html' ) %>