Optimized function get_trans_tax_details() by @apmuthu.