Improvements to invoice
This commit is contained in:
@@ -128,6 +128,17 @@ class Controller_Reseller_Account extends Controller_Account {
|
||||
'id'=>array('url'=>URL::link('user','service/view/')),
|
||||
))
|
||||
);
|
||||
|
||||
$i = Invoice::instance();
|
||||
foreach ($ao->service->list_active() as $io)
|
||||
if (! $io->suspend_billing)
|
||||
$i->add_service($io);
|
||||
|
||||
Block::factory()
|
||||
->title(sprintf('Next Invoice Items for Account: %s',$ao->accnum()))
|
||||
->title_icon('icon-info-sign')
|
||||
->span(6)
|
||||
->body($i->render('html','body'));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@@ -15,7 +15,7 @@ class Model_Auth_UserDefault extends Model_Auth_User {
|
||||
'username' => array(
|
||||
array('not_empty'),
|
||||
array('min_length', array(':value', 4)),
|
||||
array('max_length', array(':value', 32)),
|
||||
array('max_length', array(':value', 256)),
|
||||
),
|
||||
'email' => array(
|
||||
array('not_empty'),
|
||||
|
28
application/classes/StaticList/ItemType.php
Normal file
28
application/classes/StaticList/ItemType.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* This is class renders Item Type responses and forms.
|
||||
*
|
||||
* @package OSB
|
||||
* @category Helpers
|
||||
* @author Deon George
|
||||
* @copyright (c) 2009-2013 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class StaticList_ItemType extends StaticList {
|
||||
protected function _table() {
|
||||
return array(
|
||||
0=>'MAIN', // Line Charge Topic on Invoice, eg: Service Name
|
||||
5=>'EXCESS', // Excess Service Item, of item 0
|
||||
);
|
||||
}
|
||||
|
||||
public static function get($value) {
|
||||
return static::factory()->_get($value);
|
||||
}
|
||||
|
||||
public static function index($key) {
|
||||
return array_search($key,static::factory()->table());
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user