Subject: Modify getLastVoucherDate and getLastReffeNo

Description:
1) changed the query to get voucher date and refference no
   it returning wrong values beacause of vouchercode is in String format
   cannot able to get last record and max