Freeside:1.7:Documentation:Developer/FS/Report/Table/Monthly

From Freeside
< Freeside:1.7:Documentation:Developer‎ | FS‎ | Report‎ | Table
Revision as of 18:05, 3 October 2007 by Ivan (talk | contribs) (import from POD)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NAME

FS::Report::Table::Monthly - Tables of report data, indexed monthly

SYNOPSIS

 use FS::Report::Table::Monthly;

 my $report = new FS::Report::Table::Monthly (
   'items' => [ 'invoiced', 'netsales', 'credits', 'receipts', ],
   'start_month' => 4,
   'start_year'  => 2000,
   'end_month'   => 4,
   'end_year'    => 2020,
   #opt
   'agentnum'    => 54
   'params'      => [ [ 'paramsfor', 'item_one' ], [ 'item', 'two' ] ], # ...
   'remove_empty' => 1, #collapse empty rows, default 0
   'item_labels' => [ ], #useful with remove_empty
 );

 my $data = $report->data;

METHODS

data
Returns a hashref of data (!! describe)

BUGS

Documentation.

SEE ALSO