TYPE=VIEW
query=select `co-operativebank-243`.`headvoucher`.`hslno` AS `sl_no`,`co-operativebank-243`.`headvoucher`.`htcode` AS `code`,`co-operativebank-243`.`headvoucher`.`head_type` AS `head_type`,(sum(`co-operativebank-243`.`headvoucher`.`cr`) - sum(`co-operativebank-243`.`headvoucher`.`dr`)) AS `cur_bal`,\'0\' AS `bal`,`co-operativebank-243`.`headvoucher`.`shcode` AS `shcode`,`co-operativebank-243`.`headvoucher`.`main_head` AS `main_head` from `co-operativebank-243`.`headvoucher` where ((`co-operativebank-243`.`headvoucher`.`shcode` <> \'12301\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'12302\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'19205\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'19206\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'19207\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'19211\') and ((`co-operativebank-243`.`headvoucher`.`main_head` = 10000) or (`co-operativebank-243`.`headvoucher`.`htcode` = \'46000\')) and (`co-operativebank-243`.`headvoucher`.`date` <= \'2019-03-31\') and ((`co-operativebank-243`.`headvoucher`.`cr` <> 0) or (`co-operativebank-243`.`headvoucher`.`dr` <> 0))) group by `co-operativebank-243`.`headvoucher`.`htcode` union all select \'2\' AS `sl_no`,\'12000\' AS `code`,\'RESERVES & SURPLUS\' AS `head_type`,sum(`co-operativebank-243`.`approciation`.`amt`) AS `cur_bal`,0 AS `bal`,\'\' AS `shcode`,\'10000\' AS `main_hyead` from `co-operativebank-243`.`approciation` where (`co-operativebank-243`.`approciation`.`sub_head` <> \'12301\') group by `co-operativebank-243`.`approciation`.`main_head`
md5=0c799a52df3f7094e620b05f37e6a0d7
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=1
with_check_option=0
timestamp=2025-09-15 05:28:07
create-version=1
source=select  `co-operativebank-243`.`headvoucher`.`hslno`  AS  `sl_no` ,\n `co-operativebank-243`.`headvoucher`.`htcode`  AS  `code` ,\n `co-operativebank-243`.`headvoucher`.`head_type`  AS  `head_type` ,\n( sum(  `co-operativebank-243`.`headvoucher`.`cr`  )  - sum(  `co-operativebank-243`.`headvoucher`.`dr`  )  ) AS  `cur_bal` ,\n \'0\' AS  `bal` ,\n `co-operativebank-243`.`headvoucher`.`shcode`  AS  `shcode` ,\n `co-operativebank-243`.`headvoucher`.`main_head`  AS  `main_head`  from  `co-operativebank-243`.`headvoucher`  where ( (  `co-operativebank-243`.`headvoucher`.`shcode`  <>  \'12301\' ) and (  `co-operativebank-243`.`headvoucher`.`shcode`  <>  \'12302\' ) and (  `co-operativebank-243`.`headvoucher`.`shcode`  <>  \'19205\' ) and (  `co-operativebank-243`.`headvoucher`.`shcode`  <>  \'19206\' ) and (  `co-operativebank-243`.`headvoucher`.`shcode`  <>  \'19207\' ) and (  `co-operativebank-243`.`headvoucher`.`shcode`  <>  \'19211\' ) and ( (  `co-operativebank-243`.`headvoucher`.`main_head`  =10000 ) or (  `co-operativebank-243`.`headvoucher`.`htcode`  =  \'46000\' ) ) and (  `co-operativebank-243`.`headvoucher`.`date`  <=  \'2019-03-31\' ) and ( (  `co-operativebank-243`.`headvoucher`.`cr`  <>0 ) or (  `co-operativebank-243`.`headvoucher`.`dr`  <>0 ) ) ) group  by  `co-operativebank-243`.`headvoucher`.`htcode`  union  all  select  \'2\' AS  `sl_no` ,\n \'12000\' AS  `code` ,\n \'RESERVES & SURPLUS\' AS  `head_type` ,\nsum(  `co-operativebank-243`.`approciation`.`amt`  )  AS  `cur_bal` ,\n0 AS  `bal` ,\n \'\' AS  `shcode` ,\n \'10000\' AS  `main_hyead`  from  `co-operativebank-243`.`approciation`  where (  `co-operativebank-243`.`approciation`.`sub_head`  <>  \'12301\' ) group  by  `co-operativebank-243`.`approciation`.`main_head`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `co-operativebank-243`.`headvoucher`.`hslno` AS `sl_no`,`co-operativebank-243`.`headvoucher`.`htcode` AS `code`,`co-operativebank-243`.`headvoucher`.`head_type` AS `head_type`,(sum(`co-operativebank-243`.`headvoucher`.`cr`) - sum(`co-operativebank-243`.`headvoucher`.`dr`)) AS `cur_bal`,\'0\' AS `bal`,`co-operativebank-243`.`headvoucher`.`shcode` AS `shcode`,`co-operativebank-243`.`headvoucher`.`main_head` AS `main_head` from `co-operativebank-243`.`headvoucher` where ((`co-operativebank-243`.`headvoucher`.`shcode` <> \'12301\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'12302\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'19205\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'19206\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'19207\') and (`co-operativebank-243`.`headvoucher`.`shcode` <> \'19211\') and ((`co-operativebank-243`.`headvoucher`.`main_head` = 10000) or (`co-operativebank-243`.`headvoucher`.`htcode` = \'46000\')) and (`co-operativebank-243`.`headvoucher`.`date` <= \'2019-03-31\') and ((`co-operativebank-243`.`headvoucher`.`cr` <> 0) or (`co-operativebank-243`.`headvoucher`.`dr` <> 0))) group by `co-operativebank-243`.`headvoucher`.`htcode` union all select \'2\' AS `sl_no`,\'12000\' AS `code`,\'RESERVES & SURPLUS\' AS `head_type`,sum(`co-operativebank-243`.`approciation`.`amt`) AS `cur_bal`,0 AS `bal`,\'\' AS `shcode`,\'10000\' AS `main_hyead` from `co-operativebank-243`.`approciation` where (`co-operativebank-243`.`approciation`.`sub_head` <> \'12301\') group by `co-operativebank-243`.`approciation`.`main_head`
