TYPE=VIEW
query=select `co-operativebank-243`.`headvoucher`.`shcode` AS `SHCODE`,if(((`co-operativebank-243`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-243`.`headvoucher`.`htcode` = \'22000\')),(sum(`co-operativebank-243`.`headvoucher`.`cr`) - sum(`co-operativebank-243`.`headvoucher`.`dr`)),(sum(`co-operativebank-243`.`headvoucher`.`dr`) - sum(`co-operativebank-243`.`headvoucher`.`cr`))) AS `BAL`,`co-operativebank-243`.`headvoucher`.`acc_no` AS `acc_no` from `co-operativebank-243`.`headvoucher` where (`co-operativebank-243`.`headvoucher`.`date` < \'2018-04-01\') group by `co-operativebank-243`.`headvoucher`.`shcode`
md5=d9a16e856bcfa7c14b3e6e31ee73552e
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=1
with_check_option=0
timestamp=2025-09-15 05:28:02
create-version=1
source=select  `co-operativebank-243`.`headvoucher`.`shcode`  AS  `SHCODE` ,\nif( ( (  `co-operativebank-243`.`headvoucher`.`htcode`  =  \'28000\' ) or (  `co-operativebank-243`.`headvoucher`.`htcode`  =  \'22000\' ) ) ,\n( sum(  `co-operativebank-243`.`headvoucher`.`cr`  )  - sum(  `co-operativebank-243`.`headvoucher`.`dr`  )  ),\n( sum(  `co-operativebank-243`.`headvoucher`.`dr`  )  - sum(  `co-operativebank-243`.`headvoucher`.`cr`  )  ) ) AS  `BAL` ,\n `co-operativebank-243`.`headvoucher`.`acc_no`  AS  `acc_no`  from  `co-operativebank-243`.`headvoucher`  where (  `co-operativebank-243`.`headvoucher`.`date`  <  \'2018-04-01\' ) group  by  `co-operativebank-243`.`headvoucher`.`shcode`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `co-operativebank-243`.`headvoucher`.`shcode` AS `SHCODE`,if(((`co-operativebank-243`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-243`.`headvoucher`.`htcode` = \'22000\')),(sum(`co-operativebank-243`.`headvoucher`.`cr`) - sum(`co-operativebank-243`.`headvoucher`.`dr`)),(sum(`co-operativebank-243`.`headvoucher`.`dr`) - sum(`co-operativebank-243`.`headvoucher`.`cr`))) AS `BAL`,`co-operativebank-243`.`headvoucher`.`acc_no` AS `acc_no` from `co-operativebank-243`.`headvoucher` where (`co-operativebank-243`.`headvoucher`.`date` < \'2018-04-01\') group by `co-operativebank-243`.`headvoucher`.`shcode`
