integrated bug fix for the nomethoderror issue on the invoice show page