TYPE=VIEW
query=select if((sum(`co-operativebank-210`.`headvoucher`.`cr`) > -(100000)),sum(`co-operativebank-210`.`headvoucher`.`cr`),0) AS `br`,(`co-operativebank-210`.`headvoucher`.`hcode` + 46000) AS `hcode` from `co-operativebank-210`.`headvoucher` where ((`co-operativebank-210`.`headvoucher`.`htcode` = \'15000\') and (`co-operativebank-210`.`headvoucher`.`date` >= \'2025-04-01\') and (`co-operativebank-210`.`headvoucher`.`date` <= \'2026-01-05\')) group by `co-operativebank-210`.`headvoucher`.`hcode`
md5=626f7097edc77be62a754c1a923fd1da
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2026-01-05 12:40:07
create-version=1
source=select if(sum(cr)>-100000,sum(cr),0) br,(hcode+46000) hcode from headvoucher where  htcode=\'15000\' and date>=\'2025-04-01\' and date<=\'2026-01-05\' group by hcode
client_cs_name=utf8mb4
connection_cl_name=utf8mb4_general_ci
view_body_utf8=select if((sum(`co-operativebank-210`.`headvoucher`.`cr`) > -(100000)),sum(`co-operativebank-210`.`headvoucher`.`cr`),0) AS `br`,(`co-operativebank-210`.`headvoucher`.`hcode` + 46000) AS `hcode` from `co-operativebank-210`.`headvoucher` where ((`co-operativebank-210`.`headvoucher`.`htcode` = \'15000\') and (`co-operativebank-210`.`headvoucher`.`date` >= \'2025-04-01\') and (`co-operativebank-210`.`headvoucher`.`date` <= \'2026-01-05\')) group by `co-operativebank-210`.`headvoucher`.`hcode`
