forked from kevinowino869/mitrobill
default widgets
This commit is contained in:
17
system/widgets/default_info_row.php
Normal file
17
system/widgets/default_info_row.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
class default_info_row
|
||||
{
|
||||
public function getWidget()
|
||||
{
|
||||
global $config,$ui;
|
||||
|
||||
if ($config['enable_balance'] == 'yes'){
|
||||
$cb = ORM::for_table('tbl_customers')->whereGte('balance', 0)->sum('balance');
|
||||
$ui->assign('cb', $cb);
|
||||
}
|
||||
|
||||
|
||||
return $ui->fetch('widget/default_info_row.tpl');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user