TYPE=VIEW
query=select `co-operativebank-224`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-224`.`headvoucher`.`shcode` AS `code`,\'BY CASH A/C\' AS `sub_head`,sum(`co-operativebank-224`.`headvoucher`.`cr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-224`.`headvoucher`.`hcode` AS `head`,`co-operativebank-224`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-224`.`headvoucher` where ((`co-operativebank-224`.`headvoucher`.`deposit_type` = \'CASH\') and (`co-operativebank-224`.`headvoucher`.`date` = \'2025-05-13\') and ((`co-operativebank-224`.`headvoucher`.`shcode` = \'14101\') or (`co-operativebank-224`.`headvoucher`.`shcode` = (\'14101\' + 29000)))) union all select `co-operativebank-224`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-224`.`headvoucher`.`shcode` AS `code`,\'BY TRANSFER A/C\' AS `sub_head`,sum(`co-operativebank-224`.`headvoucher`.`cr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-224`.`headvoucher`.`hcode` AS `head`,`co-operativebank-224`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-224`.`headvoucher` where ((`co-operativebank-224`.`headvoucher`.`deposit_type` = \'TRANSFER\') and (`co-operativebank-224`.`headvoucher`.`date` = \'2025-05-13\') and ((`co-operativebank-224`.`headvoucher`.`shcode` = \'14101\') or (`co-operativebank-224`.`headvoucher`.`shcode` = (\'14101\' + 29000)))) union all select `co-operativebank-224`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-224`.`headvoucher`.`shcode` AS `code`,concat(\'TO \',`co-operativebank-224`.`headvoucher`.`sub_head`,\' A/C\') AS `sub_head`,0 AS `dr`,sum(`co-operativebank-224`.`headvoucher`.`cr`) AS `cr`,0 AS `interest`,`co-operativebank-224`.`headvoucher`.`hcode` AS `head`,`co-operativebank-224`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-224`.`headvoucher` where ((`co-operativebank-224`.`headvoucher`.`date` = \'2025-05-13\') and (`co-operativebank-224`.`headvoucher`.`shcode` = \'14101\')) union all select `co-operativebank-224`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-224`.`headvoucher`.`shcode` AS `code`,concat(\'TO INTEREST\',\' A/C\') AS `sub_head`,0 AS `dr`,sum(`co-operativebank-224`.`headvoucher`.`cr`) AS `cr`,0 AS `interest`,`co-operativebank-224`.`headvoucher`.`hcode` AS `head`,`co-operativebank-224`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-224`.`headvoucher` where ((`co-operativebank-224`.`headvoucher`.`date` = \'2025-05-13\') and (`co-operativebank-224`.`headvoucher`.`shcode` = (\'14101\' + 29000)))
md5=125b4e3ac713c49c4c10a836411f81fe
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2025-05-14 06:43:21
create-version=1
source=select sub_head as headname,shcode as code,\'BY CASH A/C\' AS sub_head,sum(cr) dr,0 cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where  deposit_type=\'CASH\' and date=\'2025-05-13\'  AND (SHCODE=\'14101\' OR SHCODE=\'14101\'+29000) union all select sub_head as headname,shcode as code,\'BY TRANSFER A/C\' AS sub_head,sum(cr) dr,0 cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where  deposit_type=\'TRANSFER\' and date=\'2025-05-13\'  AND (SHCODE=\'14101\' OR SHCODE=\'14101\'+29000) union all select sub_head as headname,shcode as code,CONCAT(\'TO \',sub_head,\' A/C\') AS sub_head,0 dr,sum(cr) cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where   date=\'2025-05-13\'  AND SHCODE=\'14101\' union all select sub_head as headname,shcode as code,CONCAT(\'TO INTEREST\',\' A/C\') AS sub_head,0 dr,sum(cr) cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where   date=\'2025-05-13\'  AND SHCODE=\'14101\'+29000
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `co-operativebank-224`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-224`.`headvoucher`.`shcode` AS `code`,\'BY CASH A/C\' AS `sub_head`,sum(`co-operativebank-224`.`headvoucher`.`cr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-224`.`headvoucher`.`hcode` AS `head`,`co-operativebank-224`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-224`.`headvoucher` where ((`co-operativebank-224`.`headvoucher`.`deposit_type` = \'CASH\') and (`co-operativebank-224`.`headvoucher`.`date` = \'2025-05-13\') and ((`co-operativebank-224`.`headvoucher`.`shcode` = \'14101\') or (`co-operativebank-224`.`headvoucher`.`shcode` = (\'14101\' + 29000)))) union all select `co-operativebank-224`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-224`.`headvoucher`.`shcode` AS `code`,\'BY TRANSFER A/C\' AS `sub_head`,sum(`co-operativebank-224`.`headvoucher`.`cr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-224`.`headvoucher`.`hcode` AS `head`,`co-operativebank-224`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-224`.`headvoucher` where ((`co-operativebank-224`.`headvoucher`.`deposit_type` = \'TRANSFER\') and (`co-operativebank-224`.`headvoucher`.`date` = \'2025-05-13\') and ((`co-operativebank-224`.`headvoucher`.`shcode` = \'14101\') or (`co-operativebank-224`.`headvoucher`.`shcode` = (\'14101\' + 29000)))) union all select `co-operativebank-224`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-224`.`headvoucher`.`shcode` AS `code`,concat(\'TO \',`co-operativebank-224`.`headvoucher`.`sub_head`,\' A/C\') AS `sub_head`,0 AS `dr`,sum(`co-operativebank-224`.`headvoucher`.`cr`) AS `cr`,0 AS `interest`,`co-operativebank-224`.`headvoucher`.`hcode` AS `head`,`co-operativebank-224`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-224`.`headvoucher` where ((`co-operativebank-224`.`headvoucher`.`date` = \'2025-05-13\') and (`co-operativebank-224`.`headvoucher`.`shcode` = \'14101\')) union all select `co-operativebank-224`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-224`.`headvoucher`.`shcode` AS `code`,concat(\'TO INTEREST\',\' A/C\') AS `sub_head`,0 AS `dr`,sum(`co-operativebank-224`.`headvoucher`.`cr`) AS `cr`,0 AS `interest`,`co-operativebank-224`.`headvoucher`.`hcode` AS `head`,`co-operativebank-224`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-224`.`headvoucher` where ((`co-operativebank-224`.`headvoucher`.`date` = \'2025-05-13\') and (`co-operativebank-224`.`headvoucher`.`shcode` = (\'14101\' + 29000)))
