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-mitrachak`.`voucher` `v1` join `co-operativebank-mitrachak`.`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=5b594539b38762d3703baa32f19d4640
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=1
with_check_option=0
timestamp=2019-05-30 04:21:27
create-version=1
source=select if( (  `v1`.`Acc_no`  =  \'\' ),  `v1`.`cash_acc` ,  `v1`.`Acc_no`  )  AS  `acc_no` ,\n `an`.`name`  AS  `name` ,\n `an`.`lfno`  AS  `lfno` ,\nsum(  `v1`.`cr`  )  AS  `CASH` ,\n \'0\' AS  `TRAN` ,\n `v1`.`date`  AS  `date` ,\n `v1`.`sub_head`  AS  `sub_head`  from (  `co-operativebank-mitrachak`.`voucher`  `v1`  join  `co-operativebank-mitrachak`.`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-mitrachak`.`voucher` `v1` join `co-operativebank-mitrachak`.`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`)
