TYPE=VIEW
query=select `v`.`no` AS `no`,`v`.`cash_acc` AS `acc_no`,`la`.`name` AS `name`,`la`.`lfno` AS `lfno`,sum(`v`.`cr`) AS `CASH`,\'0\' AS `TRAN`,`v`.`date` AS `date`,`v`.`sub_head` AS `sub_head` from `co-operativebank-radhapur`.`voucher` `v` USE INDEX (`by_sub_head`) USE INDEX (`by_date`) USE INDEX (`by_cash_acc`) USE INDEX (`by_acc_no`) join `co-operativebank-radhapur`.`quick_name` `la` USE INDEX (`by_acc_no`) where (((`v`.`cash_acc` = `la`.`acc_no`) or (`v`.`Acc_no` = `la`.`acc_no`)) and (`v`.`head` > 40000) and (`v`.`sub_head` = \'52101B\') and (`v`.`date` = \'2026-02-25\') and (`v`.`deposit_type` = \'CASH\') and (`v`.`cr` <> \'0\')) group by `v`.`cash_acc`,`v`.`Acc_no` union all select `v`.`no` AS `no`,`v`.`cash_acc` AS `acc_no`,`la`.`name` AS `name`,`la`.`lfno` AS `lfno`,\'0\' AS `0`,sum(`v`.`cr`) AS `TRAN`,`v`.`date` AS `date`,`v`.`sub_head` AS `sub_head` from `co-operativebank-radhapur`.`voucher` `v` USE INDEX (`by_sub_head`) USE INDEX (`by_date`) USE INDEX (`by_cash_acc`) USE INDEX (`by_acc_no`) join `co-operativebank-radhapur`.`quick_name` `la` USE INDEX (`by_acc_no`) where (((`v`.`cash_acc` = `la`.`acc_no`) or (`v`.`Acc_no` = `la`.`acc_no`)) and (`v`.`head` > 40000) and (`v`.`sub_head` = \'52101B\') and (`v`.`date` = \'2026-02-25\') and (`v`.`deposit_type` = \'TRANSFER\') and (`v`.`cr` <> \'0\')) group by `v`.`cash_acc`,`v`.`Acc_no`
md5=b1471f0ff6d07406474fed819ee1bf1b
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2026-02-25 11:40:09
create-version=1
source=select v.no,v.cash_acc as acc_no,LA.name,lfno,sum(V.cr) as CASH,\'0\' as TRAN,V.date,v.sub_head from voucher v USE INDEX (by_acc_no,by_cash_acc,by_date,by_sub_head),quick_name la USE INDEX (by_acc_no) where (v.cash_acc=la.acc_no or v.acc_no=la.acc_no) and v.head>40000 and v.sub_head=\'52101B\' and v.date=\'2026-02-25\' AND DEPOSIT_TYPE=\'CASH\' AND cR<>\'0\' group by v.cash_acc,v.acc_no  UNION ALL select v.no,v.cash_acc as acc_no,LA.name,lfno,\'0\',sum(V.cr) as TRAN,V.date,v.sub_head from voucher v USE INDEX (by_acc_no,by_cash_acc,by_date,by_sub_head),quick_name la USE INDEX (by_acc_no) where (v.cash_acc=la.acc_no or v.acc_no=la.acc_no) and v.head>40000 and v.sub_head=\'52101B\' and v.date=\'2026-02-25\' AND DEPOSIT_TYPE=\'TRANSFER\' AND cR<>\'0\' group by v.cash_acc,v.acc_no
client_cs_name=utf8mb4
connection_cl_name=utf8mb4_general_ci
view_body_utf8=select `v`.`no` AS `no`,`v`.`cash_acc` AS `acc_no`,`la`.`name` AS `name`,`la`.`lfno` AS `lfno`,sum(`v`.`cr`) AS `CASH`,\'0\' AS `TRAN`,`v`.`date` AS `date`,`v`.`sub_head` AS `sub_head` from `co-operativebank-radhapur`.`voucher` `v` USE INDEX (`by_sub_head`) USE INDEX (`by_date`) USE INDEX (`by_cash_acc`) USE INDEX (`by_acc_no`) join `co-operativebank-radhapur`.`quick_name` `la` USE INDEX (`by_acc_no`) where (((`v`.`cash_acc` = `la`.`acc_no`) or (`v`.`Acc_no` = `la`.`acc_no`)) and (`v`.`head` > 40000) and (`v`.`sub_head` = \'52101B\') and (`v`.`date` = \'2026-02-25\') and (`v`.`deposit_type` = \'CASH\') and (`v`.`cr` <> \'0\')) group by `v`.`cash_acc`,`v`.`Acc_no` union all select `v`.`no` AS `no`,`v`.`cash_acc` AS `acc_no`,`la`.`name` AS `name`,`la`.`lfno` AS `lfno`,\'0\' AS `0`,sum(`v`.`cr`) AS `TRAN`,`v`.`date` AS `date`,`v`.`sub_head` AS `sub_head` from `co-operativebank-radhapur`.`voucher` `v` USE INDEX (`by_sub_head`) USE INDEX (`by_date`) USE INDEX (`by_cash_acc`) USE INDEX (`by_acc_no`) join `co-operativebank-radhapur`.`quick_name` `la` USE INDEX (`by_acc_no`) where (((`v`.`cash_acc` = `la`.`acc_no`) or (`v`.`Acc_no` = `la`.`acc_no`)) and (`v`.`head` > 40000) and (`v`.`sub_head` = \'52101B\') and (`v`.`date` = \'2026-02-25\') and (`v`.`deposit_type` = \'TRANSFER\') and (`v`.`cr` <> \'0\')) group by `v`.`cash_acc`,`v`.`Acc_no`
