refactor get_voucher_details in stock_controller