To dimension transaction added link to invoice and invoice postions
js optimised