Subject: added flag query in getReffNo and getReffDate

Description:
1) check for delete voucher flag while getting reffno and reffdate