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