TYPE=VIEW
query=select if((`v1`.`Acc_no` = \'\'),`v1`.`cash_acc`,`v1`.`Acc_no`) AS `acc_no`,`an`.`name` AS `name`,`an`.`lfno` AS `lfno`,sum(`v1`.`cr`) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-bajbajia`.`voucher` `v1` join `co-operativebank-bajbajia`.`quick_name` `an`) where (((`v1`.`Acc_no` = `an`.`acc_no`) or (`v1`.`cash_acc` = `an`.`acc_no`)) and (`v1`.`sub_head` > 57000) and (`v1`.`sub_head` <= 57999) and (`v1`.`sub_head` = \'57907\') and (`v1`.`date` = \'2018-12-31\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`cr` <> \'0\')) group by if((`v1`.`Acc_no` = \'\'),`v1`.`cash_acc`,`v1`.`Acc_no`)
md5=5853c7e057fc0693a15337f4f5cf0f22
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=1
with_check_option=0
timestamp=2019-01-10 05:51:50
create-version=1
source=select if((`v1`.`Acc_no` = \'\'),`v1`.`cash_acc`,`v1`.`Acc_no`) AS `acc_no`,`an`.`name` AS `name`,`an`.`lfno` AS `lfno`,sum(`v1`.`cr`) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`voucher` `v1` join `quick_name` `an`) where (((`v1`.`Acc_no` = `an`.`acc_no`) or (`v1`.`cash_acc` = `an`.`acc_no`)) and (`v1`.`sub_head` > 57000) and (`v1`.`sub_head` <= 57999) and (`v1`.`sub_head` = \'57907\') and (`v1`.`date` = \'2018-12-31\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`cr` <> \'0\')) group by if((`v1`.`Acc_no` = \'\'),`v1`.`cash_acc`,`v1`.`Acc_no`)
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if((`v1`.`Acc_no` = \'\'),`v1`.`cash_acc`,`v1`.`Acc_no`) AS `acc_no`,`an`.`name` AS `name`,`an`.`lfno` AS `lfno`,sum(`v1`.`cr`) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-bajbajia`.`voucher` `v1` join `co-operativebank-bajbajia`.`quick_name` `an`) where (((`v1`.`Acc_no` = `an`.`acc_no`) or (`v1`.`cash_acc` = `an`.`acc_no`)) and (`v1`.`sub_head` > 57000) and (`v1`.`sub_head` <= 57999) and (`v1`.`sub_head` = \'57907\') and (`v1`.`date` = \'2018-12-31\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`cr` <> \'0\')) group by if((`v1`.`Acc_no` = \'\'),`v1`.`cash_acc`,`v1`.`Acc_no`)
