TYPE=VIEW
query=select `co-operativebank-dekhaliannapurna`.`headvoucher`.`shcode` AS `SHCODE`,if(((`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'22000\')),(sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`cr`) - sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`dr`)),(sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`dr`) - sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`cr`))) AS `BAL`,`co-operativebank-dekhaliannapurna`.`headvoucher`.`acc_no` AS `acc_no` from `co-operativebank-dekhaliannapurna`.`headvoucher` where (`co-operativebank-dekhaliannapurna`.`headvoucher`.`date` < \'2024-04-01\') group by `co-operativebank-dekhaliannapurna`.`headvoucher`.`shcode` union all select `co-operativebank-dekhaliannapurna`.`approciation`.`sub_head` AS `SHCODE`,(sum(`co-operativebank-dekhaliannapurna`.`approciation`.`dr`) - sum(`co-operativebank-dekhaliannapurna`.`approciation`.`cr`)) AS `BAL`,\'\' AS `acc_no` from `co-operativebank-dekhaliannapurna`.`approciation` where (`co-operativebank-dekhaliannapurna`.`approciation`.`date` < \'2024-04-01\') group by `co-operativebank-dekhaliannapurna`.`approciation`.`sub_head`
md5=ad042bcb1d105b57a35a3301c34df44e
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2026-04-15 11:30:40
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<\'2024-04-01\' group by shcode union all SELECT sub_head as SHCODE,sum(dr)-sum(cr) BAL,\'\' as acc_no FROM approciation where date<\'2024-04-01\' group by sub_head
client_cs_name=utf8mb4
connection_cl_name=utf8mb4_general_ci
view_body_utf8=select `co-operativebank-dekhaliannapurna`.`headvoucher`.`shcode` AS `SHCODE`,if(((`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'22000\')),(sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`cr`) - sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`dr`)),(sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`dr`) - sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`cr`))) AS `BAL`,`co-operativebank-dekhaliannapurna`.`headvoucher`.`acc_no` AS `acc_no` from `co-operativebank-dekhaliannapurna`.`headvoucher` where (`co-operativebank-dekhaliannapurna`.`headvoucher`.`date` < \'2024-04-01\') group by `co-operativebank-dekhaliannapurna`.`headvoucher`.`shcode` union all select `co-operativebank-dekhaliannapurna`.`approciation`.`sub_head` AS `SHCODE`,(sum(`co-operativebank-dekhaliannapurna`.`approciation`.`dr`) - sum(`co-operativebank-dekhaliannapurna`.`approciation`.`cr`)) AS `BAL`,\'\' AS `acc_no` from `co-operativebank-dekhaliannapurna`.`approciation` where (`co-operativebank-dekhaliannapurna`.`approciation`.`date` < \'2024-04-01\') group by `co-operativebank-dekhaliannapurna`.`approciation`.`sub_head`
