TYPE=VIEW
query=select (sum(`co-club`.`voucher`.`cr`) - sum(`co-club`.`voucher`.`dr`)) AS `amt`,`co-club`.`voucher`.`Acc_no` AS `ledger` from `co-club`.`voucher` where (`co-club`.`voucher`.`status` = \'1\') group by `co-club`.`voucher`.`Acc_no` union all select (sum(`co-club`.`voucher`.`cr`) - sum(`co-club`.`voucher`.`dr`)) AS `amt`,`co-club`.`voucher`.`cash_acc` AS `cash_acc` from `co-club`.`voucher` where (`co-club`.`voucher`.`status` = \'1\') group by `co-club`.`voucher`.`cash_acc`
md5=0b13de582f6ec08878f1ac571a7c1bc4
updatable=0
algorithm=0
definer_user=root
definer_host=localhost
suid=1
with_check_option=0
timestamp=2018-11-01 09:34:25
create-version=1
source=select ( sum(  `co-club`.`voucher`.`cr`  )  - sum(  `co-club`.`voucher`.`dr`  )  ) AS  `amt` ,\n `co-club`.`voucher`.`Acc_no`  AS  `ledger`  from  `co-club`.`voucher`  where (  `co-club`.`voucher`.`status`  =  \'1\' ) group  by  `co-club`.`voucher`.`Acc_no`  union  all  select ( sum(  `co-club`.`voucher`.`cr`  )  - sum(  `co-club`.`voucher`.`dr`  )  ) AS  `amt` ,\n `co-club`.`voucher`.`cash_acc`  AS  `cash_acc`  from  `co-club`.`voucher`  where (  `co-club`.`voucher`.`status`  =  \'1\' ) group  by  `co-club`.`voucher`.`cash_acc`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select (sum(`co-club`.`voucher`.`cr`) - sum(`co-club`.`voucher`.`dr`)) AS `amt`,`co-club`.`voucher`.`Acc_no` AS `ledger` from `co-club`.`voucher` where (`co-club`.`voucher`.`status` = \'1\') group by `co-club`.`voucher`.`Acc_no` union all select (sum(`co-club`.`voucher`.`cr`) - sum(`co-club`.`voucher`.`dr`)) AS `amt`,`co-club`.`voucher`.`cash_acc` AS `cash_acc` from `co-club`.`voucher` where (`co-club`.`voucher`.`status` = \'1\') group by `co-club`.`voucher`.`cash_acc`
