Freeside:3:Documentation:Developer/FS/TemplateItem Mixin

From Freeside
< Freeside:3:Documentation:Developer‎ | FS
Revision as of 13:40, 27 June 2014 by Jeremyd (talk | contribs) (Edit via perl MediaWiki framework (1.13))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
cust_pkg
Returns the package (see FS::cust_pkg) for this invoice line item.
part_pkg
Returns the package definition for this invoice line item.
desc LOCALE
Returns a description for this line item. For typical line items, this is the pkg field of the corresponding FS::part_pkg object (see FS::part_pkg). For one-shot line items and named taxes, it is the itemdesc field of this line item, and for generic taxes, simply returns "Tax".
time_period_pretty PART_PKG, AGENTNUM
Returns a formatted time period for this line item.
details [ OPTION => VALUE ... ]
Returns an array of detail information for the invoice line item.
Options may include:
format: set to 'html' or 'latex' to have the detail lines formatted for inclusion in an HTML table (wrapped in <tr> and <td> elements) or LaTeX table (delimited with & and \\ operators).
escape_function: if present, then the array elements are processed by this function before being returned.
format_function: overrides the normal HTML or LaTeX function for returning formatted CDRs.
no_usage: excludes call detail records. The method will still return some special-case records like prorate details, and manually created package details.
details_header [ OPTION => VALUE ... ]
Returns a list representing an invoice line item detail header, if any. This relies on the behavior of voip_cdr in that it expects the header to be the first CSV formatted detail (as is expected by invoice generation routines). Returns the empty list otherwise.
quantity; unitsetup; unitrecur; cust_bill_pkg_display [ type => TYPE ]
Returns an array of display information for the invoice line item optionally limited to 'TYPE'.
cust_bill_pkg_detail [ CLASSNUM ]
Returns the list of associated cust_bill_pkg_detail objects The optional CLASSNUM argument will limit the details to the specified usage class.
cust_bill_pkg_discount
Returns the list of associated cust_bill_pkg_discount objects.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 20:
'=item' outside of any '=over'