TYPE=VIEW
query=select `co-operativebank`.`headvoucher`.`shcode` AS `SHCODE`,if(((`co-operativebank`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank`.`headvoucher`.`htcode` = \'22000\')),(sum(`co-operativebank`.`headvoucher`.`cr`) - sum(`co-operativebank`.`headvoucher`.`dr`)),(sum(`co-operativebank`.`headvoucher`.`dr`) - sum(`co-operativebank`.`headvoucher`.`cr`))) AS `BAL`,`co-operativebank`.`headvoucher`.`acc_no` AS `acc_no` from `co-operativebank`.`headvoucher` where (`co-operativebank`.`headvoucher`.`date` < \'2025-04-01\') group by `co-operativebank`.`headvoucher`.`shcode` union all select `co-operativebank`.`approciation`.`sub_head` AS `SHCODE`,(sum(`co-operativebank`.`approciation`.`dr`) - sum(`co-operativebank`.`approciation`.`cr`)) AS `BAL`,\'\' AS `acc_no` from `co-operativebank`.`approciation` where (`co-operativebank`.`approciation`.`date` < \'2025-04-01\') group by `co-operativebank`.`approciation`.`sub_head`
md5=7e7e523a63740a6fe68f7bcb26110ee2
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2026-01-31 05:41:47
create-version=1
source=SELECT SHCODE,IF(HTCODE=\'28000\' or htcode=\'22000\',SUM(cr)-sum(dr),sum(dr)-sum(cr)) BAL,acc_no FROM headvoucher where date<\'2025-04-01\' group by shcode union all SELECT sub_head as SHCODE,sum(dr)-sum(cr) BAL,\'\' as acc_no FROM approciation where date<\'2025-04-01\' group by sub_head
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `co-operativebank`.`headvoucher`.`shcode` AS `SHCODE`,if(((`co-operativebank`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank`.`headvoucher`.`htcode` = \'22000\')),(sum(`co-operativebank`.`headvoucher`.`cr`) - sum(`co-operativebank`.`headvoucher`.`dr`)),(sum(`co-operativebank`.`headvoucher`.`dr`) - sum(`co-operativebank`.`headvoucher`.`cr`))) AS `BAL`,`co-operativebank`.`headvoucher`.`acc_no` AS `acc_no` from `co-operativebank`.`headvoucher` where (`co-operativebank`.`headvoucher`.`date` < \'2025-04-01\') group by `co-operativebank`.`headvoucher`.`shcode` union all select `co-operativebank`.`approciation`.`sub_head` AS `SHCODE`,(sum(`co-operativebank`.`approciation`.`dr`) - sum(`co-operativebank`.`approciation`.`cr`)) AS `BAL`,\'\' AS `acc_no` from `co-operativebank`.`approciation` where (`co-operativebank`.`approciation`.`date` < \'2025-04-01\') group by `co-operativebank`.`approciation`.`sub_head`
