mitrobill/system/widgets/default_info_row.php

17 lines
352 B
PHP
Raw Permalink Normal View History

2025-02-17 13:54:18 +07:00
<?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');
}
}