TYPE=VIEW
query=select `v1`.`Acc_no` AS `acc_no`,`sh`.`sub_head` AS `name`,\'\' AS `lfno`,sum(`v1`.`dr`) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from `co-operativebank`.`voucher` `v1` join `co-operativebank`.`sub_head` `sh` where ((`v1`.`sub_head` = `sh`.`code`) and (`v1`.`sub_head` = \'61201\') and (`v1`.`date` = \'2017-08-21\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`dr` <> \'0\')) group by (`v1`.`Acc_no` or `v1`.`cash_acc`) union all select `v1`.`Acc_no` AS `acc_no`,`sh`.`sub_head` AS `name`,\'\' AS `lfno`,\'0\' AS `0`,sum(`v1`.`dr`) AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from `co-operativebank`.`voucher` `v1` join `co-operativebank`.`sub_head` `sh` where ((`v1`.`sub_head` = `sh`.`code`) and (`v1`.`sub_head` = \'61201\') and (`v1`.`date` = \'2017-08-21\') and (`v1`.`deposit_type` = \'TRANSFER\') and (`v1`.`dr` <> \'0\')) group by (`v1`.`Acc_no` or `v1`.`cash_acc`)
md5=9d03d90a71eceb7f137fdb0e9f3e9e9e
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2018-05-26 11:19:01
create-version=1
source=select v1.acc_no,sh.sub_head as name,\'\' lfno,sum(dr) as CASH,\'0\' as TRAN,date,v1.sub_head from voucher v1,sub_head sh where v1.sub_head=sh.code and v1.sub_head=\'61201\' and v1.date=\'2017-08-21\' AND DEPOSIT_TYPE=\'CASH\' AND dR<>\'0\' group by (v1.acc_no or v1.cash_acc)  UNION ALL select v1.acc_no,sh.sub_head as name,\'\' lfno,\'0\',sum(dr) as TRAN,date,v1.sub_head from voucher v1,sub_head sh where  v1.sub_head=sh.code and v1.sub_head=\'61201\' and v1.date=\'2017-08-21\' AND DEPOSIT_TYPE=\'TRANSFER\' AND dR<>\'0\' group by (v1.acc_no or v1.cash_acc)
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `v1`.`Acc_no` AS `acc_no`,`sh`.`sub_head` AS `name`,\'\' AS `lfno`,sum(`v1`.`dr`) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from `co-operativebank`.`voucher` `v1` join `co-operativebank`.`sub_head` `sh` where ((`v1`.`sub_head` = `sh`.`code`) and (`v1`.`sub_head` = \'61201\') and (`v1`.`date` = \'2017-08-21\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`dr` <> \'0\')) group by (`v1`.`Acc_no` or `v1`.`cash_acc`) union all select `v1`.`Acc_no` AS `acc_no`,`sh`.`sub_head` AS `name`,\'\' AS `lfno`,\'0\' AS `0`,sum(`v1`.`dr`) AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from `co-operativebank`.`voucher` `v1` join `co-operativebank`.`sub_head` `sh` where ((`v1`.`sub_head` = `sh`.`code`) and (`v1`.`sub_head` = \'61201\') and (`v1`.`date` = \'2017-08-21\') and (`v1`.`deposit_type` = \'TRANSFER\') and (`v1`.`dr` <> \'0\')) group by (`v1`.`Acc_no` or `v1`.`cash_acc`)
