TYPE=VIEW
query=select `m`.`lf_no` AS `lf_no`,`m`.`Open_date` AS `Open_date`,`m`.`acc_no` AS `acc_no`,`m`.`name` AS `name`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `bal`,`m`.`interest` AS `interest`,`m`.`pay_date` AS `pay_date`,round((((sum(`v`.`cr`) - sum(`v`.`dr`)) * (timestampdiff(DAY,`m`.`pay_date`,\'2024-12-22\') / 365)) * (`m`.`interest` / 100)),0) AS `Int_amt`,timestampdiff(DAY,`m`.`pay_date`,\'2024-12-22\') AS `Days` from `co-operativebank-keshabchak`.`mis_details` `m` join `co-operativebank-keshabchak`.`voucher` `v` where ((`v`.`sub_head` = \'14107\') and (`m`.`acc_no` = `v`.`Acc_no`) and (`v`.`date` <= \'2024-12-22\')) group by `m`.`acc_no`
md5=e9e0e51c1c84f0606ccb65466be320e9
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2024-12-22 09:08:50
create-version=1
source=select lf_no,m.Open_date,m.acc_no,m.name,sum(cr)-sum(dr) as bal,m.interest,m.pay_date,round ((sum(cr)-sum(dr))*(timestampdiff(day,m.pay_date,\'2024-12-22\')/365)*(m.interest/100)) as Int_amt,timestampdiff(day,m.pay_date,\'2024-12-22\') as Days from mis_details m, voucher v where v.sub_head=\'14107\' and m.acc_no=v.acc_no and v.date<=\'2024-12-22\' group by acc_no
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `m`.`lf_no` AS `lf_no`,`m`.`Open_date` AS `Open_date`,`m`.`acc_no` AS `acc_no`,`m`.`name` AS `name`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `bal`,`m`.`interest` AS `interest`,`m`.`pay_date` AS `pay_date`,round((((sum(`v`.`cr`) - sum(`v`.`dr`)) * (timestampdiff(DAY,`m`.`pay_date`,\'2024-12-22\') / 365)) * (`m`.`interest` / 100)),0) AS `Int_amt`,timestampdiff(DAY,`m`.`pay_date`,\'2024-12-22\') AS `Days` from `co-operativebank-keshabchak`.`mis_details` `m` join `co-operativebank-keshabchak`.`voucher` `v` where ((`v`.`sub_head` = \'14107\') and (`m`.`acc_no` = `v`.`Acc_no`) and (`v`.`date` <= \'2024-12-22\')) group by `m`.`acc_no`
