forked from kevinowino869/mitrobill
Add Balance to Reports
This commit is contained in:
parent
a09dc57495
commit
4fd8165d89
@ -26,7 +26,7 @@ switch ($action) {
|
|||||||
case 'by-date':
|
case 'by-date':
|
||||||
case 'daily-report':
|
case 'daily-report':
|
||||||
$paginator = Paginator::bootstrap('tbl_transactions','recharged_on',$mdate);
|
$paginator = Paginator::bootstrap('tbl_transactions','recharged_on',$mdate);
|
||||||
$d = ORM::for_table('tbl_transactions')->where('recharged_on',$mdate)->offset($paginator['startpoint'])->limit($paginator['limit'])->order_by_desc('id')->find_many();
|
$d = ORM::for_table('tbl_transactions')->where('recharged_on',$mdate)->where_not_equal('','')->offset($paginator['startpoint'])->limit($paginator['limit'])->order_by_desc('id')->find_many();
|
||||||
$dr = ORM::for_table('tbl_transactions')->where('recharged_on',$mdate)->sum('price');
|
$dr = ORM::for_table('tbl_transactions')->where('recharged_on',$mdate)->sum('price');
|
||||||
|
|
||||||
$ui->assign('d',$d);
|
$ui->assign('d',$d);
|
||||||
|
@ -379,3 +379,4 @@ $_L['Cannot_send_to_yourself'] = 'Cannot send to yourself';
|
|||||||
$_L['Sending_balance_success'] = 'Sending balance success';
|
$_L['Sending_balance_success'] = 'Sending balance success';
|
||||||
$_L['From'] = 'From';
|
$_L['From'] = 'From';
|
||||||
$_L['To'] = 'To';
|
$_L['To'] = 'To';
|
||||||
|
$_L['insufficient_balance'] = 'insufficient balance';
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
<option value="" selected="">{$_L['All_Transactions']}</option>
|
<option value="" selected="">{$_L['All_Transactions']}</option>
|
||||||
<option value="Hotspot">Hotspot</option>
|
<option value="Hotspot">Hotspot</option>
|
||||||
<option value="PPPOE">PPPOE</option>
|
<option value="PPPOE">PPPOE</option>
|
||||||
|
<option value="Balance">Balance</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user