TYPE=VIEW
query=select `co-club`.`headvoucher`.`sub_head` AS `headname`,`co-club`.`headvoucher`.`shcode` AS `code`,concat(\'BY \',`co-club`.`headvoucher`.`sub_head`,\' A/C\') AS `sub_head`,sum(`co-club`.`headvoucher`.`dr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-club`.`headvoucher`.`hcode` AS `head`,`co-club`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-club`.`headvoucher` where ((`co-club`.`headvoucher`.`date` = \'2021-05-19\') and (`co-club`.`headvoucher`.`shcode` = \'14201\')) union all select `co-club`.`headvoucher`.`sub_head` AS `headname`,`co-club`.`headvoucher`.`shcode` AS `code`,concat(\'BY INTEREST\',\' A/C\') AS `sub_head`,sum(`co-club`.`headvoucher`.`dr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-club`.`headvoucher`.`hcode` AS `head`,`co-club`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-club`.`headvoucher` where ((`co-club`.`headvoucher`.`date` = \'2021-05-19\') and (`co-club`.`headvoucher`.`shcode` = (\'14201\' + 48000))) union all select `co-club`.`headvoucher`.`sub_head` AS `headname`,`co-club`.`headvoucher`.`shcode` AS `code`,\'TO CASH A/C\' AS `sub_head`,0 AS `dr`,sum(`co-club`.`headvoucher`.`dr`) AS `cr`,0 AS `interest`,`co-club`.`headvoucher`.`hcode` AS `head`,`co-club`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-club`.`headvoucher` where ((`co-club`.`headvoucher`.`deposit_type` = \'CASH\') and (`co-club`.`headvoucher`.`date` = \'2021-05-19\') and ((`co-club`.`headvoucher`.`shcode` = \'14201\') or (`co-club`.`headvoucher`.`shcode` = (\'14201\' + 48000)))) union all select `co-club`.`headvoucher`.`sub_head` AS `headname`,`co-club`.`headvoucher`.`shcode` AS `code`,\'TO TRANSFER A/C\' AS `sub_head`,0 AS `dr`,sum(`co-club`.`headvoucher`.`dr`) AS `cr`,0 AS `interest`,`co-club`.`headvoucher`.`hcode` AS `head`,`co-club`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-club`.`headvoucher` where ((`co-club`.`headvoucher`.`deposit_type` = \'TRANSFER\') and (`co-club`.`headvoucher`.`date` = \'2021-05-19\') and ((`co-club`.`headvoucher`.`shcode` = \'14201\') or (`co-club`.`headvoucher`.`shcode` = (\'14201\' + 48000))))
md5=05b8775a83e779196a2e4ea0d71851cd
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2021-05-21 07:16:20
create-version=1
source=select sub_head as headname,shcode as code,CONCAT(\'BY \',sub_head,\' A/C\') AS sub_head,sum(dr) dr,0 cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where   date=\'2021-05-19\'  AND SHCODE=\'14201\' union all select sub_head as headname,shcode as code,CONCAT(\'BY INTEREST\',\' A/C\') AS sub_head,sum(dr) dr,0 cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where   date=\'2021-05-19\'  AND SHCODE=\'14201\'+48000 union all select sub_head as headname,shcode as code,\'TO CASH A/C\' AS sub_head,0 dr,sum(dr) cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where  deposit_type=\'CASH\' and date=\'2021-05-19\'  AND (SHCODE=\'14201\' OR SHCODE=\'14201\'+48000) union all select sub_head as headname,shcode as code,\'TO TRANSFER A/C\' AS sub_head,0 dr,sum(dr) cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where  deposit_type=\'TRANSFER\' and date=\'2021-05-19\'  AND (SHCODE=\'14201\' OR SHCODE=\'14201\'+48000)
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `co-club`.`headvoucher`.`sub_head` AS `headname`,`co-club`.`headvoucher`.`shcode` AS `code`,concat(\'BY \',`co-club`.`headvoucher`.`sub_head`,\' A/C\') AS `sub_head`,sum(`co-club`.`headvoucher`.`dr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-club`.`headvoucher`.`hcode` AS `head`,`co-club`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-club`.`headvoucher` where ((`co-club`.`headvoucher`.`date` = \'2021-05-19\') and (`co-club`.`headvoucher`.`shcode` = \'14201\')) union all select `co-club`.`headvoucher`.`sub_head` AS `headname`,`co-club`.`headvoucher`.`shcode` AS `code`,concat(\'BY INTEREST\',\' A/C\') AS `sub_head`,sum(`co-club`.`headvoucher`.`dr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-club`.`headvoucher`.`hcode` AS `head`,`co-club`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-club`.`headvoucher` where ((`co-club`.`headvoucher`.`date` = \'2021-05-19\') and (`co-club`.`headvoucher`.`shcode` = (\'14201\' + 48000))) union all select `co-club`.`headvoucher`.`sub_head` AS `headname`,`co-club`.`headvoucher`.`shcode` AS `code`,\'TO CASH A/C\' AS `sub_head`,0 AS `dr`,sum(`co-club`.`headvoucher`.`dr`) AS `cr`,0 AS `interest`,`co-club`.`headvoucher`.`hcode` AS `head`,`co-club`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-club`.`headvoucher` where ((`co-club`.`headvoucher`.`deposit_type` = \'CASH\') and (`co-club`.`headvoucher`.`date` = \'2021-05-19\') and ((`co-club`.`headvoucher`.`shcode` = \'14201\') or (`co-club`.`headvoucher`.`shcode` = (\'14201\' + 48000)))) union all select `co-club`.`headvoucher`.`sub_head` AS `headname`,`co-club`.`headvoucher`.`shcode` AS `code`,\'TO TRANSFER A/C\' AS `sub_head`,0 AS `dr`,sum(`co-club`.`headvoucher`.`dr`) AS `cr`,0 AS `interest`,`co-club`.`headvoucher`.`hcode` AS `head`,`co-club`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-club`.`headvoucher` where ((`co-club`.`headvoucher`.`deposit_type` = \'TRANSFER\') and (`co-club`.`headvoucher`.`date` = \'2021-05-19\') and ((`co-club`.`headvoucher`.`shcode` = \'14201\') or (`co-club`.`headvoucher`.`shcode` = (\'14201\' + 48000))))
