TYPE=VIEW
query=select `co-operativebank-mitrachak`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-mitrachak`.`headvoucher`.`shcode` AS `code`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),concat(\'BY \',`co-operativebank-mitrachak`.`headvoucher`.`sub_head`,\' A/C\',\' -\',`co-operativebank-mitrachak`.`headvoucher`.`acc_no`),concat(\'BY \',`co-operativebank-mitrachak`.`headvoucher`.`sub_head`,\' A/C\')) AS `sub_head`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),sum(`co-operativebank-mitrachak`.`headvoucher`.`cr`),sum(`co-operativebank-mitrachak`.`headvoucher`.`dr`)) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-mitrachak`.`headvoucher`.`hcode` AS `head`,`co-operativebank-mitrachak`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-mitrachak`.`headvoucher` where ((`co-operativebank-mitrachak`.`headvoucher`.`date` = \'2025-09-27\') and (`co-operativebank-mitrachak`.`headvoucher`.`shcode` = \'63921\')) union all select `co-operativebank-mitrachak`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-mitrachak`.`headvoucher`.`shcode` AS `code`,concat(\'BY INTEREST\',\' A/C\') AS `sub_head`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),sum(`co-operativebank-mitrachak`.`headvoucher`.`cr`),sum(`co-operativebank-mitrachak`.`headvoucher`.`dr`)) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-mitrachak`.`headvoucher`.`hcode` AS `head`,`co-operativebank-mitrachak`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-mitrachak`.`headvoucher` where ((`co-operativebank-mitrachak`.`headvoucher`.`date` = \'2025-09-27\') and (`co-operativebank-mitrachak`.`headvoucher`.`shcode` = (\'63921\' + 48000))) union all select `co-operativebank-mitrachak`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-mitrachak`.`headvoucher`.`shcode` AS `code`,\'TO CASH A/C\' AS `sub_head`,0 AS `dr`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),sum(`co-operativebank-mitrachak`.`headvoucher`.`cr`),sum(`co-operativebank-mitrachak`.`headvoucher`.`dr`)) AS `cr`,0 AS `interest`,`co-operativebank-mitrachak`.`headvoucher`.`hcode` AS `head`,`co-operativebank-mitrachak`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-mitrachak`.`headvoucher` where ((`co-operativebank-mitrachak`.`headvoucher`.`deposit_type` = \'CASH\') and (`co-operativebank-mitrachak`.`headvoucher`.`date` = \'2025-09-27\') and ((`co-operativebank-mitrachak`.`headvoucher`.`shcode` = \'63921\') or (`co-operativebank-mitrachak`.`headvoucher`.`shcode` = (\'63921\' + 48000)))) union all select `co-operativebank-mitrachak`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-mitrachak`.`headvoucher`.`shcode` AS `code`,\'TO TRANSFER A/C\' AS `sub_head`,0 AS `dr`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),sum(`co-operativebank-mitrachak`.`headvoucher`.`cr`),sum(`co-operativebank-mitrachak`.`headvoucher`.`dr`)) AS `cr`,0 AS `interest`,`co-operativebank-mitrachak`.`headvoucher`.`hcode` AS `head`,`co-operativebank-mitrachak`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-mitrachak`.`headvoucher` where ((`co-operativebank-mitrachak`.`headvoucher`.`deposit_type` = \'TRANSFER\') and (`co-operativebank-mitrachak`.`headvoucher`.`date` = \'2025-09-27\') and ((`co-operativebank-mitrachak`.`headvoucher`.`shcode` = \'63921\') or (`co-operativebank-mitrachak`.`headvoucher`.`shcode` = (\'63921\' + 48000))))
md5=23011b6c84004acfdd64c6fb449f9444
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2026-02-11 04:48:26
create-version=1
source=select sub_head as headname,shcode as code,if(htcode=\'28000\' or htcode=\'22000\',CONCAT(\'BY \',sub_head,\' A/C\',\' -\',acc_no),CONCAT(\'BY \',sub_head,\' A/C\')) AS sub_head,if(htcode=\'28000\' or htcode=\'22000\',sum(cr),sum(dr)) as dr,0 cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where   date=\'2025-09-27\'  AND SHCODE=\'63921\' union all select sub_head as headname,shcode as code,CONCAT(\'BY INTEREST\',\' A/C\') AS sub_head,if(htcode=\'28000\' or htcode=\'22000\',sum(cr),sum(dr)) as  dr,0 cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where   date=\'2025-09-27\'  AND SHCODE=\'63921\'+48000 union all select sub_head as headname,shcode as code,\'TO CASH A/C\' AS sub_head,0 dr,if(htcode=\'28000\' or htcode=\'22000\',sum(cr),sum(dr)) cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where  deposit_type=\'CASH\' and date=\'2025-09-27\'  AND (SHCODE=\'63921\' OR SHCODE=\'63921\'+48000) union all select sub_head as headname,shcode as code,\'TO TRANSFER A/C\' AS sub_head,0 dr,if(htcode=\'28000\' or htcode=\'22000\',sum(cr),sum(dr)) cr,0 as interest, hcode as head,htcode htcode,0 as m_count from headvoucher where  deposit_type=\'TRANSFER\' and date=\'2025-09-27\'  AND (SHCODE=\'63921\' OR SHCODE=\'63921\'+48000)
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `co-operativebank-mitrachak`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-mitrachak`.`headvoucher`.`shcode` AS `code`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),concat(\'BY \',`co-operativebank-mitrachak`.`headvoucher`.`sub_head`,\' A/C\',\' -\',`co-operativebank-mitrachak`.`headvoucher`.`acc_no`),concat(\'BY \',`co-operativebank-mitrachak`.`headvoucher`.`sub_head`,\' A/C\')) AS `sub_head`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),sum(`co-operativebank-mitrachak`.`headvoucher`.`cr`),sum(`co-operativebank-mitrachak`.`headvoucher`.`dr`)) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-mitrachak`.`headvoucher`.`hcode` AS `head`,`co-operativebank-mitrachak`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-mitrachak`.`headvoucher` where ((`co-operativebank-mitrachak`.`headvoucher`.`date` = \'2025-09-27\') and (`co-operativebank-mitrachak`.`headvoucher`.`shcode` = \'63921\')) union all select `co-operativebank-mitrachak`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-mitrachak`.`headvoucher`.`shcode` AS `code`,concat(\'BY INTEREST\',\' A/C\') AS `sub_head`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),sum(`co-operativebank-mitrachak`.`headvoucher`.`cr`),sum(`co-operativebank-mitrachak`.`headvoucher`.`dr`)) AS `dr`,0 AS `cr`,0 AS `interest`,`co-operativebank-mitrachak`.`headvoucher`.`hcode` AS `head`,`co-operativebank-mitrachak`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-mitrachak`.`headvoucher` where ((`co-operativebank-mitrachak`.`headvoucher`.`date` = \'2025-09-27\') and (`co-operativebank-mitrachak`.`headvoucher`.`shcode` = (\'63921\' + 48000))) union all select `co-operativebank-mitrachak`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-mitrachak`.`headvoucher`.`shcode` AS `code`,\'TO CASH A/C\' AS `sub_head`,0 AS `dr`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),sum(`co-operativebank-mitrachak`.`headvoucher`.`cr`),sum(`co-operativebank-mitrachak`.`headvoucher`.`dr`)) AS `cr`,0 AS `interest`,`co-operativebank-mitrachak`.`headvoucher`.`hcode` AS `head`,`co-operativebank-mitrachak`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-mitrachak`.`headvoucher` where ((`co-operativebank-mitrachak`.`headvoucher`.`deposit_type` = \'CASH\') and (`co-operativebank-mitrachak`.`headvoucher`.`date` = \'2025-09-27\') and ((`co-operativebank-mitrachak`.`headvoucher`.`shcode` = \'63921\') or (`co-operativebank-mitrachak`.`headvoucher`.`shcode` = (\'63921\' + 48000)))) union all select `co-operativebank-mitrachak`.`headvoucher`.`sub_head` AS `headname`,`co-operativebank-mitrachak`.`headvoucher`.`shcode` AS `code`,\'TO TRANSFER A/C\' AS `sub_head`,0 AS `dr`,if(((`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-mitrachak`.`headvoucher`.`htcode` = \'22000\')),sum(`co-operativebank-mitrachak`.`headvoucher`.`cr`),sum(`co-operativebank-mitrachak`.`headvoucher`.`dr`)) AS `cr`,0 AS `interest`,`co-operativebank-mitrachak`.`headvoucher`.`hcode` AS `head`,`co-operativebank-mitrachak`.`headvoucher`.`htcode` AS `htcode`,0 AS `m_count` from `co-operativebank-mitrachak`.`headvoucher` where ((`co-operativebank-mitrachak`.`headvoucher`.`deposit_type` = \'TRANSFER\') and (`co-operativebank-mitrachak`.`headvoucher`.`date` = \'2025-09-27\') and ((`co-operativebank-mitrachak`.`headvoucher`.`shcode` = \'63921\') or (`co-operativebank-mitrachak`.`headvoucher`.`shcode` = (\'63921\' + 48000))))
