TYPE=VIEW
query=select (((select sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`cr`) AS `bal` from `co-operativebank-dekhaliannapurna`.`headvoucher` USE INDEX (`by_htcode`) where (((`co-operativebank-dekhaliannapurna`.`headvoucher`.`type` = \'CASH\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'11000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'13000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'14000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'21000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'23000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`main_head` = \'50000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'41000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'42000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'43000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'44000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'46000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`main_head` = \'60000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'34000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'35000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'37000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'32000\')) and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` <> \'64000\') and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`date` < \'2026-04-13\'))) - (select sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`dr`) AS `bal` from `co-operativebank-dekhaliannapurna`.`headvoucher` USE INDEX (`by_htcode`) where (((`co-operativebank-dekhaliannapurna`.`headvoucher`.`type` = \'CASH\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'11000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'13000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'14000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'23000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`main_head` = \'60000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'34000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'35000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'37000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'32000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'21000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`main_head` = \'50000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'41000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'42000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'43000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'44000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'46000\')) and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` <> \'64000\') and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`date` < \'2026-04-13\')))) - (select (sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`cr`) - sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`dr`)) AS `bal` from `co-operativebank-dekhaliannapurna`.`headvoucher` USE INDEX (`by_htcode`) where (((`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'22000\')) and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`date` < \'2026-04-13\')))) AS `opbal`
md5=0b2a332d71f7c4c3db12ebc3c9e14dd8
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2026-04-13 12:27:20
create-version=1
source=SELECT ((SELECT  SUM( cr )  bal FROM headvoucher USE INDEX (by_htcode) WHERE ( type=\'CASH\' or htcode =  \'11000\' OR htcode =  \'13000\' OR htcode =  \'14000\' OR htcode = \'21000\' OR htcode =  \'23000\' OR main_head =  \'50000\' OR htcode =  \'41000\' OR htcode =  \'42000\' OR htcode =  \'43000\' OR htcode =  \'44000\' OR htcode =  \'46000\' OR main_head =  \'60000\' OR htcode =  \'34000\' OR htcode =  \'35000\' OR htcode =  \'37000\' OR htcode =  \'32000\'  ) and htcode<>\'64000\'  AND DATE <\'2026-04-13\' )- ( SELECT  SUM( dr )  bal FROM headvoucher USE INDEX (by_htcode) WHERE ( type=\'CASH\'  or htcode =  \'11000\' OR htcode =  \'13000\' OR htcode =  \'14000\' OR htcode =  \'23000\' OR main_head =  \'60000\' OR htcode =  \'34000\' OR htcode =  \'35000\' OR htcode =  \'37000\' OR htcode =  \'32000\'   OR htcode = \'21000\' OR main_head =  \'50000\' OR htcode =  \'41000\' OR htcode =  \'42000\' OR htcode =  \'43000\' OR htcode =  \'44000\' OR htcode =  \'46000\' ) and htcode<>\'64000\'  AND DATE <\'2026-04-13\' ) - (SELECT  SUM( cr ) - SUM( dr )  bal FROM headvoucher USE INDEX (by_htcode) WHERE ( htcode =  \'28000\' OR htcode =  \'22000\' ) AND DATE <\'2026-04-13\')) as opbal
client_cs_name=utf8mb4
connection_cl_name=utf8mb4_general_ci
view_body_utf8=select (((select sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`cr`) AS `bal` from `co-operativebank-dekhaliannapurna`.`headvoucher` USE INDEX (`by_htcode`) where (((`co-operativebank-dekhaliannapurna`.`headvoucher`.`type` = \'CASH\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'11000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'13000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'14000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'21000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'23000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`main_head` = \'50000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'41000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'42000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'43000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'44000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'46000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`main_head` = \'60000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'34000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'35000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'37000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'32000\')) and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` <> \'64000\') and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`date` < \'2026-04-13\'))) - (select sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`dr`) AS `bal` from `co-operativebank-dekhaliannapurna`.`headvoucher` USE INDEX (`by_htcode`) where (((`co-operativebank-dekhaliannapurna`.`headvoucher`.`type` = \'CASH\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'11000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'13000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'14000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'23000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`main_head` = \'60000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'34000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'35000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'37000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'32000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'21000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`main_head` = \'50000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'41000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'42000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'43000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'44000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'46000\')) and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` <> \'64000\') and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`date` < \'2026-04-13\')))) - (select (sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`cr`) - sum(`co-operativebank-dekhaliannapurna`.`headvoucher`.`dr`)) AS `bal` from `co-operativebank-dekhaliannapurna`.`headvoucher` USE INDEX (`by_htcode`) where (((`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'28000\') or (`co-operativebank-dekhaliannapurna`.`headvoucher`.`htcode` = \'22000\')) and (`co-operativebank-dekhaliannapurna`.`headvoucher`.`date` < \'2026-04-13\')))) AS `opbal`
