56c11507f4
Many misc updates
50 lines
1.4 KiB
PHP
50 lines
1.4 KiB
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
* This class provides invoice capabilities.
|
|
*
|
|
* @package OSB
|
|
* @subpackage Invoice
|
|
* @category Controllers/Admin
|
|
* @author Deon George
|
|
* @copyright (c) 2010 Open Source Billing
|
|
* @license http://dev.osbill.net/license.html
|
|
*
|
|
* Column Definitions:
|
|
* + price_type: 0=One Time, 1=Recurring, 2=Trial, 3=Extra Item
|
|
* + item_type: 0=MAIN Service Item,2=?,3=?,4=Connection/Setup,5=Excess Service Item,6=Change Service,126=Payment Fee,127=Late Fee
|
|
*/
|
|
class Controller_Admin_Invoice extends Controller_TemplateDefault_Admin {
|
|
protected $secure_actions = array(
|
|
'list'=>TRUE,
|
|
);
|
|
|
|
/**
|
|
* Show a list of invoices
|
|
*/
|
|
public function action_list() {
|
|
Block::add(array(
|
|
'title'=>_('System Customer Invoices'),
|
|
'body'=>Table::display(
|
|
ORM::factory('invoice')->find_all(),
|
|
25,
|
|
array(
|
|
'id'=>array('label'=>'ID','url'=>'user/invoice/view/'),
|
|
'date_orig'=>array('label'=>'Date'),
|
|
'total(TRUE)'=>array('label'=>'Total','class'=>'right'),
|
|
'credit_amt'=>array('label'=>'Credits','class'=>'right'),
|
|
'payments_total(TRUE)'=>array('label'=>'Payments','class'=>'right'),
|
|
'due(TRUE)'=>array('label'=>'Still Due','class'=>'right'),
|
|
'account->accnum()'=>array('label'=>'Cust ID'),
|
|
'account->name()'=>array('label'=>'Customer'),
|
|
),
|
|
array(
|
|
'page'=>TRUE,
|
|
'type'=>'select',
|
|
'form'=>'user/invoice/view',
|
|
)),
|
|
));
|
|
}
|
|
}
|
|
?>
|