TYPE=VIEW
query=select `co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` AS `code`,\'BY CASH A/C\' AS `sub_head`,sum(`co-operativebank-dkmadhabpur`.`headvoucher`.`cr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-dkmadhabpur`.`headvoucher`.`hcode` AS `head`,`co-operativebank-dkmadhabpur`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-dkmadhabpur`.`headvoucher` where ((`co-operativebank-dkmadhabpur`.`headvoucher`.`deposit_type` = \'CASH\') and (`co-operativebank-dkmadhabpur`.`headvoucher`.`date` = \'2025-03-31\') and ((`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = \'14101\') or (`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = (\'14101\' + 29000)))) union all select `co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` AS `code`,\'BY TRANSFER A/C\' AS `sub_head`,sum(`co-operativebank-dkmadhabpur`.`headvoucher`.`cr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-dkmadhabpur`.`headvoucher`.`hcode` AS `head`,`co-operativebank-dkmadhabpur`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-dkmadhabpur`.`headvoucher` where ((`co-operativebank-dkmadhabpur`.`headvoucher`.`deposit_type` = \'TRANSFER\') and (`co-operativebank-dkmadhabpur`.`headvoucher`.`date` = \'2025-03-31\') and ((`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = \'14101\') or (`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = (\'14101\' + 29000)))) union all select `co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` AS `code`,concat(\'TO \',`co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head`,\' A/C\') AS `sub_head`,0 AS `dr`,sum(`co-operativebank-dkmadhabpur`.`headvoucher`.`cr`) AS `cr`,0 AS `interest`,`co-operativebank-dkmadhabpur`.`headvoucher`.`hcode` AS `head`,`co-operativebank-dkmadhabpur`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-dkmadhabpur`.`headvoucher` where ((`co-operativebank-dkmadhabpur`.`headvoucher`.`date` = \'2025-03-31\') and (`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = \'14101\')) union all select `co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` AS `code`,concat(\'TO INTEREST\',\' A/C\') AS `sub_head`,0 AS `dr`,sum(`co-operativebank-dkmadhabpur`.`headvoucher`.`cr`) AS `cr`,0 AS `interest`,`co-operativebank-dkmadhabpur`.`headvoucher`.`hcode` AS `head`,`co-operativebank-dkmadhabpur`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-dkmadhabpur`.`headvoucher` where ((`co-operativebank-dkmadhabpur`.`headvoucher`.`date` = \'2025-03-31\') and (`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = (\'14101\' + 29000)))
md5=44a857b4e4281c1c42cb211480b4e733
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2025-10-18 04:56:42
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-03-31\'  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-03-31\'  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-03-31\'  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-03-31\'  AND SHCODE=\'14101\'+29000
client_cs_name=utf8mb4
connection_cl_name=utf8mb4_general_ci
view_body_utf8=select `co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` AS `code`,\'BY CASH A/C\' AS `sub_head`,sum(`co-operativebank-dkmadhabpur`.`headvoucher`.`cr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-dkmadhabpur`.`headvoucher`.`hcode` AS `head`,`co-operativebank-dkmadhabpur`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-dkmadhabpur`.`headvoucher` where ((`co-operativebank-dkmadhabpur`.`headvoucher`.`deposit_type` = \'CASH\') and (`co-operativebank-dkmadhabpur`.`headvoucher`.`date` = \'2025-03-31\') and ((`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = \'14101\') or (`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = (\'14101\' + 29000)))) union all select `co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` AS `code`,\'BY TRANSFER A/C\' AS `sub_head`,sum(`co-operativebank-dkmadhabpur`.`headvoucher`.`cr`) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-dkmadhabpur`.`headvoucher`.`hcode` AS `head`,`co-operativebank-dkmadhabpur`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-dkmadhabpur`.`headvoucher` where ((`co-operativebank-dkmadhabpur`.`headvoucher`.`deposit_type` = \'TRANSFER\') and (`co-operativebank-dkmadhabpur`.`headvoucher`.`date` = \'2025-03-31\') and ((`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = \'14101\') or (`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = (\'14101\' + 29000)))) union all select `co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` AS `code`,concat(\'TO \',`co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head`,\' A/C\') AS `sub_head`,0 AS `dr`,sum(`co-operativebank-dkmadhabpur`.`headvoucher`.`cr`) AS `cr`,0 AS `interest`,`co-operativebank-dkmadhabpur`.`headvoucher`.`hcode` AS `head`,`co-operativebank-dkmadhabpur`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-dkmadhabpur`.`headvoucher` where ((`co-operativebank-dkmadhabpur`.`headvoucher`.`date` = \'2025-03-31\') and (`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = \'14101\')) union all select `co-operativebank-dkmadhabpur`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` AS `code`,concat(\'TO INTEREST\',\' A/C\') AS `sub_head`,0 AS `dr`,sum(`co-operativebank-dkmadhabpur`.`headvoucher`.`cr`) AS `cr`,0 AS `interest`,`co-operativebank-dkmadhabpur`.`headvoucher`.`hcode` AS `head`,`co-operativebank-dkmadhabpur`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-dkmadhabpur`.`headvoucher` where ((`co-operativebank-dkmadhabpur`.`headvoucher`.`date` = \'2025-03-31\') and (`co-operativebank-dkmadhabpur`.`headvoucher`.`shcode` = (\'14101\' + 29000)))
